KnobsBuilder class

Constructors

KnobsBuilder(KnobAdded onKnobAdded)

Properties

double DoubleKnobsBuilder
final
doubleOrNull DoubleOrNullKnobsBuilder
final
hashCode int
The hash code for this object.
no setterinherited
int → IntKnobsBuilder
final
intOrNull → IntOrNullKnobsBuilder
final
onKnobAdded KnobAdded
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

boolean({required String label, String? description, bool initialValue = false}) bool
Creates a checkbox that can be toggled on and off
booleanOrNull({required String label, String? description, bool? initialValue}) bool?
Creates a checkbox that can be toggled on and off and optionally hold a null value
color({required String label, Color initialValue = Colors.white, ColorSpace initialColorSpace = ColorSpace.hex, String? description}) Color
Creates a color picker that can be used to select a color.
colorOrNull({required String label, Color? initialValue, ColorSpace initialColorSpace = ColorSpace.hex, String? description}) Color?
Creates a color picker that can be used to select a color.
dateTime({required String label, required DateTime initialValue, String? description, required DateTime start, required DateTime end}) DateTime
Creates a text field that can be used to select a date and time
dateTimeOrNull({required String label, DateTime? initialValue, String? description, required DateTime start, required DateTime end}) DateTime?
Creates a text field that can be used to select a date and time and can be initially empty
duration({required String label, Duration initialValue = Duration.zero, String? description}) Duration
Creates a duration input that can be typed in
durationOrNull({required String label, Duration? initialValue, String? description}) Duration?
Creates a duration input that can be adjusted and optionally hold a null value
list<T>({required String label, required List<T> options, T? initialOption, String? description, LabelBuilder<T>? labelBuilder}) → T
Allow the users to select from a list of options in a drop down box. Must contain at least one value.
listOrNull<T>({required String label, required List<T?> options, T? initialOption, String? description, LabelBuilder<T?>? labelBuilder}) → T?
Allow the users to select from a list of options in a drop down box that might contain a null value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
string({required String label, String? description, String initialValue = '', $int? maxLines = 1}) String
Creates a textfield that can be typed in
stringOrNull({required String label, String? description, String? initialValue, $int? maxLines = 1}) String?
Creates a textfield that can be typed in and optionally hold a null value
toString() String
A string representation of this object.
inherited

Operators

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