Skip to content

Instantly share code, notes, and snippets.

@gaetschwartz
Created March 4, 2021 11:19
Show Gist options
  • Save gaetschwartz/97285babbffb11219b5298224c51e805 to your computer and use it in GitHub Desktop.
Save gaetschwartz/97285babbffb11219b5298224c51e805 to your computer and use it in GitHub Desktop.
void main() async {
final a = A();
print(a is N);
print(a is M);
}
mixin M {
int get number => 20;
}
mixin N {
String get text => 'Foo';
}
class Mixed = Object with N, M;
class A with Mixed {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment