DoubleConverter class Null safety

A converter that converts input to doubles, possibly with a minimum or maximum value.

Note: this converter does not ensure that all values will be in the range min..max. min and max offer purely client-side validation and input from text commands is not validated beyond being a valid double.

You might also be interested in:



DoubleConverter({double? min, double? max})
Create a new DoubleConverter.


autocompleteCallback → (FutureOr<Iterable<ArgChoiceBuilder>?> Function?(AutocompleteContext)?)
A function called to provide autocompletion for arguments of this type.
final, inherited
choices Iterable<ArgChoiceBuilder>?
The choices for this type.
final, inherited
convert FutureOr<double?> Function(StringView view, IChatContext context)
The function called to perform the conversion.
final, inherited
hashCode int
The hash code for this object.
read-only, inherited
max double?
The biggest value the user will be allows to input in the Discord Client.
final, inherited
min double?
The smallest value the user will be allowed to input in the Discord Client.
final, inherited
output Type
The type that this converter parses.
final, inherited
processOptionCallback → (void Function?(CommandOptionBuilder)?)
A callback called with the CommandOptionBuilder created for an option using this converter.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type CommandOptionType
The Discord Slash Command Argument Type of the type that this converter parses.
final, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


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