Vandad Nahavandipoor on Twitter: "Did you know that in #Dart, you can #extend #functions? 🤯Any function defined with a #typedef can be extended. Here I show you how to turn an "onPressed" #
![flutter - The argument type 'void Function(Map<String, bool>)' can't be assigned to the parameter type 'Map<String, bool>' - Stack Overflow flutter - The argument type 'void Function(Map<String, bool>)' can't be assigned to the parameter type 'Map<String, bool>' - Stack Overflow](https://i.stack.imgur.com/ehf49.png)
flutter - The argument type 'void Function(Map<String, bool>)' can't be assigned to the parameter type 'Map<String, bool>' - Stack Overflow
![android - Dart Flutter Future Void _CastError (type 'Null' is not a subtype of type 'List<String?>' in type cast) Error - Stack Overflow android - Dart Flutter Future Void _CastError (type 'Null' is not a subtype of type 'List<String?>' in type cast) Error - Stack Overflow](https://i.stack.imgur.com/W4K1k.png)
android - Dart Flutter Future Void _CastError (type 'Null' is not a subtype of type 'List<String?>' in type cast) Error - Stack Overflow
![The curious case of void in Dart. I think void type is the most curious… | by Shubham Soni | Flutter Community | Medium The curious case of void in Dart. I think void type is the most curious… | by Shubham Soni | Flutter Community | Medium](https://miro.medium.com/v2/resize:fit:1200/1*D5HdcaizNnBd7d62_Pz7MQ.jpeg)