SupportedArguments class
A collection of supported command-line arguments for the translations code generator.
This class provides constants for the command-line arguments that can be used to specify the generation mode when running the translations_code_gen tool.
The supported arguments allow users to control what type of code generation should be performed (Dart keys, Dart values, JSON values, or all).
Example usage:
# Using short-hand argument
dart run translations_code_gen -g=dart-keys
# Using long-hand argument
dart run translations_code_gen --generate=dart-values
See also:
- SupportedGenerateModes for the available generation mode values
Constructors
- SupportedArguments()
-
Creates a new instance of SupportedArguments.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- longHandGenerate → const String
- The long-hand command-line argument for specifying generation mode.
- shortHandGenerate → const String
- The short-hand command-line argument for specifying generation mode.
-
supportedArguments
→ const List<
String> - A list containing all supported command-line arguments.