Ideally I'm looking for something like :
typedef Json = Map<String, dynamic>;
From what I understand, this language feature is under review typedef for simple type aliases with ETA Q1'19
But for a immediate alternative, what would be the simplest way to "extend" a Map in Dart ? All the solutions I could find are quite old and look overkill. At the end I just want an alias for my Map.
Thanks in advance.
Dart 2.13
analyzer:
enable-experiment:
- nonfunction-type-aliases
flutter run --enable-experiment=nonfunction-type-aliases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With