mixin
-
[Dart] Mixin, with플러터 2024. 5. 16. 15:41
Mixin ??https://dart.dev/language/mixinsMixins are a way of defining code that can be reused in multiple class hierarchies. They are intended to provide member implementations en masse.To use a mixin, use the with keyword followed by one or more mixin names. The following example shows two classes that use mixins:다중 상속을 위해 사용mixin으로 만든것만 다중 상속이 가능사용 예시mixin Fish{ void swim() { print("swim");..