ModuleOption class
Defines a configurable option exposed by an FKIT module.
Constructors
- ModuleOption({required String name, required String type, required String prompt, required dynamic defaultValue})
-
Creates a module option configuration.
const
- ModuleOption.fromMap({required String name, required Map map})
-
Creates a module option from the provided
nameand configurationmap.factory
Properties
- defaultValue → dynamic
-
The default value used when no option value is provided.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBoolean → bool
-
Whether the option uses the boolean data type.
no setter
- name → String
-
The unique name of the module option.
final
- prompt → String
-
The message displayed when prompting the user for the option value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The data type of the option.
final
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