Skip to content

Instantly share code, notes, and snippets.

View BrayanCaro's full-sized avatar

Brayan BrayanCaro

View GitHub Profile
class Animal {}
class Dog extends Animal {}
void main() {
final dogs = [Dog()];
List<Animal> animals = dogs;
// Unhandled exception:
// type '() => Animal' is not a subtype of type '(() => Dog)?' of 'orElse'