본문 바로가기 메뉴 바로가기

개발자놀이

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발자놀이

검색하기 폼
  • 분류 전체보기 (27)
    • Flutter (23)
    • Python, FastAPI (2)
    • Flutter Q&A (1)
    • 팀,프로젝트 (1)
  • 방명록

json_serializable (1)
[Flutter] Freezed : 우리는 왜 immutable 객체를 사용해야 하는가?

Immutable? 불변의 객체 이걸 왜 사용해야 할까? Dart로 클래스를 만들면 기본적으로 mutable하다. 하지만 이런 객체(특히 Model)를 사용하게 되면 원하지 않는 데이터의 변경이 발생하는 경우가 있다. 아래 코드를 한번 보자 class Document { String id; String title; Document({required this.id, required this.title}); } void main() { final document = Documet(id:’1234’, title:’개발자놀이!’); final isValidTitle = checkTitleValidation(document); print(‘${document.title}: ${isValidTitle}’); } b..

Flutter 2022. 7. 6. 22:33
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • navigator
  • flutter element
  • Flutter
  • flutter2.0
  • json_serializable
  • freezed
  • flutter_secure_storage
  • StatefulWidget LifeCycle
  • FlutterEngine
  • RenderObject
  • flutter i18n
  • Flutter LifeCycle
  • flutter l10n
  • Android
  • Mutiple Flutter
  • Element LifeCycle
  • enum member
  • Flutter3.0
  • DART
  • dart 2.17
  • flutter 다국어처리
  • dart enum
  • MVVM
  • Flutter TDD
  • Route
  • python3
  • Widget Tree
  • widget element
  • flutter mvvm
  • LocalKey
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바