BuildOptions class

Constructors

BuildOptions({required Map<String, dynamic> selectedValues, required String getValueAsString(dynamic value), required void clearValue(String id, [dynamic resetTo]), required void clearValues([Map<String, dynamic> resetTo])})

Properties

clearValue → void Function(String id, [dynamic resetTo])
To reset the controller value to null. The second param is optional which can be used to define the reset value (default is `null). For example, clearValue("searchbox", "")
final
clearValues → void Function([Map<String, dynamic> resetTo])
To clear the values An optional param can be defined to reset values for controllers. For example, clearValues({ "searchbox": "", "author-filter": [] })
final
getValueAsString String Function(dynamic value)
A utility method to parse the value to a string. It covers all the value formats supported by Appbase.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedValues Map<String, dynamic>
A map of search controller id to SearchController One can loop through the map to get the corresponding raw value for each filter. For example, selectedValues.forEach((filterId, filterValue){ // do something with extracted values })
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