invalidGenerateModeError property

String invalidGenerateModeError
final

Error message displayed when an invalid generation mode is specified.

This error occurs when the user provides a generation mode that is not supported by the tool. The message lists all valid generation modes that can be used.

Valid generation modes include:

  • dart: Generate both keys and values
  • dart-keys: Generate only key constants
  • dart-only: Generate dart code only
  • json-values: Generate JSON value files

Returns: A String containing the detailed error message with supported modes

Implementation

static final invalidGenerateModeError = '''
------------------------------------------------------------------------------------------------------------
-> Invalid generate mode.
-> Supported generate modes are: dart, dart-keys, dart-only, json-values

-> For more information visit: https://pub.dev/packages/translations_code_gen
-> or visit: https://github.com/youhanasheriff/translations_code_gen
------------------------------------------------------------------------------------------------------------
''';