I know that it can be done by defining a method in the class. but I want to know if it's possible by defining a getter in dart.
CodePudding user response:
Getters are not allowed to have any arguments.
I know that it can be done by defining a method in the class. but I want to know if it's possible by defining a getter in dart.
CodePudding user response:
Getters are not allowed to have any arguments.