Home > Software engineering >  Is there a way to define a getter in dart which takes an index parameter?
Is there a way to define a getter in dart which takes an index parameter?

Time:10-16

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.

  • Related