what is the difference between required and @required in flutter. What is the difference between them and when do we need to use them?
@required is just an annotation that allows analyzers let you know that you’re missing a named parameter and that’s it. so you can still compile the application and possibly get an exception if this named param was not passed. However sound null-safety was added to dart, and required is now a keyword that needs to … Read more