Skip to content

Instantly share code, notes, and snippets.

View ralflorent's full-sized avatar
🏠
Working from home

Ralph Florent ralflorent

🏠
Working from home
View GitHub Profile
@ralflorent
ralflorent / main.dart
Last active March 25, 2021 12:42
Summarizer: a simple example of how to use the basics of mixins in Dart.
void main() {
var n = Name('Harry Potter');
print(n.distribution);
var s = Summary('abracadabra');
print(s.distribution);
}
/// Sample example.
class Name with Summarizer {