Flutter

Dart - Class Modifier
Dart - Class ModifierDart 3부터 클래스 선언에 사용할 수 있는 다양한 modifier가 도입되며, 코드 설계의 유연성과 안정성이 크게 향상되었습니다. 하지만 abstract, base, interface, final, sealed, mixin 등 다양한 키워드들이 존재하다 보니, 언제 어떤 걸 써야 하는지 헷갈릴 수 있죠. 이 글에서는 Dart 공식 문서 기준으로 각 modifier의 역할, 적절한 사용 시점, 간단한 예제를 통해 알아 보도록 하겠습니다. https://dart.dev/language/modifier-reference Modifier 요약 표Modifier생성자extendsimplementsmixin특징abstract final class❌❌❌❌❌class✅✅✅❌기본..

Vercel - Web 배포
Build Command./web_build.sh Output Directorybuild/web Install Commandif cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git; fi && ls && flutter/bin/flutter doctor && flutter/bin/flutter clean && flutter/bin/flutter config --enable-web web_build.shflutter/bin/flutter build web --release

Flutter - extends, implements, with, mixin
Flutter를 공부하다 다양한 상속 관계 키워드를 보게 되었다. extends다중 상속 불가능부모 클래스의 메서드를 모두 구현하지 않아도 된다.class Animal { void makeSound() { print('Some sound'); }}class Dog extends Animal { void bark() { print('Woof!'); }}void main() { var dog = Dog(); dog.makeSound(); // 상위 클래스의 메서드 호출 dog.bark(); // 하위 클래스의 메서드 호출} implements다중 상속 가능모든 부모 클래스의 메서드를 오버라이딩해서 구현 해주어야 한다.abstract class Vehicle { void drive()..