ModuleOption class

Defines a configurable option exposed by an FKIT module.

Constructors

ModuleOption({required String name, required ModuleOptionType 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 name and configuration map.
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 is a boolean.
no setter
isColor bool
Whether the option represents a color.
no setter
isDouble bool
Whether the option is a double.
no setter
isEnum bool
Whether the option is an enumeration.
no setter
isInteger bool
Whether the option is an integer.
no setter
isString bool
Whether the option is a string.
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 ModuleOptionType
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