[Flutter] i have something Write flutter coding, when can i use () to finish or use '.' to next properties

sidcode·2024년 6월 6일

Flutter로 코딩하다보면 갑자기 이런 생각이 들때가 있죠.
어떤 상황일때 는 '()' 로 마무리하고 어떨때는 연결해서 '.' 마무리 할까?
i have something Write flutter coding, when can i use () to finish or use '.' to next properties

간단히 설명하면,
to put it simply explain,

light 테마 객체를 반환하는 정적 메소드로 사용할때
when used it to return object static method of light theme

	final ThemeData lightTheme = ThemeData.light();

light 테마 속성에 직접 접근해서 정적 속성들을 사용할때
when using directly in static properties

	 final Color primaryColor = ThemeData.light().primaryColor;

Thank you for read my post, im not well english so pealse understand me

profile
I will do, what i want!!

0개의 댓글