CreateOptions<T> class
Constructors
-
CreateOptions({required T create(String text), required Widget createBuilder(String text), bool validator(T) = _defaultValidator, void onDuplicate(T)?, bool pickCreated = false, bool allowDuplicates = false, void onCreated(T)?})
-
const
Properties
-
allowDuplicates
→ bool
-
Whether to allow duplicates in the list.
final
-
create
→ T Function(String text)
-
Return the item you want to add in your list.
final
-
createBuilder
→ Widget Function(String text)
-
This is the create item Widget builder.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
onCreated
→ void Function(T)?
-
A callback after the item is created and added to your list/picked items.
final
-
onDuplicate
→ void Function(T)?
-
A callback when the item already exists in your list.
final
-
pickCreated
→ bool
-
Whether to automatically pick the created item. Defaults to
false
.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
validator
→ bool Function(T)
-
You can create the item
T
with provided text
.
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