AFConfigurationItemOption class

Superclass for various configuration items that offer a set of options.

Inheritance

Constructors

AFConfigurationItemOption({required AFLibraryID libraryId, required String name, required String help, required int validContexts, required double ordinal, String defaultValue = "", int minChars = -1, int maxChars = -1, int options = 0})

Properties

argumentHelp String
no setterinherited
argumentString String
no setterinherited
codeIdentifier String
no setterinherited
defaultValue → dynamic
finalinherited
hashCode int
The hash code for this object.
no setterinherited
help String
finalinherited
libraryId AFLibraryID
finalinherited
maxChars int
final
minChars int
final
name String
finalinherited
options int
final
ordinal double
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validContexts int
finalinherited

Methods

addArguments(ArgParser argParser) → void
override
allowedIn(int validContext) bool
inherited
codeValue(AFConfig config) String?
inherited
comment() String
inherited
hasOption(int opt) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(AFConfig dest, dynamic value) → void
inherited
setValueWithString(AFConfig dest, String value) → void
inherited
toString() String
A string representation of this object.
inherited
validate(dynamic value) String?
Return an error message if the value is invalid, otherwise return null.
override
validateWithException(String value) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

optionIdentifier → const int
optionLowercase → const int
optionMixedCase → const int