What is a factory constructor?

A factory constructor is a constructor that can be used when you don’t necessarily want a constructor to create a new instance of your class . This might be useful if you hold instances of your class in memory and don’t want to create a new one each time (or if the operation of creating an instance is costly).

Read more

What is assert in flutter?

The assert statement is a useful tool to debug the code and it uses boolean condition for testing . If the boolean expression in assert statement is true then the code continues to execute, but if it returns false then the code ends with Assertion Error.20 Tem 2020

Read more