generateGetterMethods property

bool generateGetterMethods
final

When set to true apart from fields creates additional getter methods for generated fields and extension methods on BuildContext. This gives you the additional ways of getting strings.

Example: For given key:

{
  "test_message": "This is a test message"
}

You can get value with:

//field with get
Strings.testMessage.get();
//method getter
Strings.getTestMessage();
//BuildContext extension method
context.getTestMessage();

Implementation

final bool generateGetterMethods;