Error: The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'

preview_player
Показать описание
Flutter error
Error: The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'.

Flutter error solution
Instead of using Function? use VoidCallback?

[Solved] Error: The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'


--- SUBSCRIBE HERE ---

SOCIAL MEDIA: Follow Me :-)

--- PLAYLISTS ---
Java Tutorials in Pashto

Android Tutorials in Pashto

Dart Tutorials in Urdu

Flutter Tutorials in Pashto

Flutter and Firebase Pashto

Android sqlite complete app

LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)
Рекомендации по теме
Комментарии
Автор

i was following a year old tutorial on making some login ui, and you just saved me hours of frustration holy shit thanks dude

manuelsilva
Автор

Error - The argument type 'Function' can't be assigned to the parameter type 'void Function()?
final voidcallback solved
thanks

krishnak
Автор

thank you, was struggling with this error
Error: The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'

muhammadabid
Автор

Thank you, did not expect this to work, honestly. 🙏

creghy
Автор

Nicely done, dear. It was really a troublesome error. Thank you.

mukahmad
Автор

Please how i resolve this A value of type 'Null' can't be assigned to a parameter of type 'Key' in a const constructor.
Try using a subtype, or removing the keyword 'const'.

bigbronaijaupdates
Автор

Error: The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'

Thank you

zarfar
Автор

please expain to me "VoidCallBack?" why was "?" in front of that , many thanks ?

vominhhieu