ListDBMemberControl class

Provides a list of dismissible cards.

Inheritance

Constructors

ListDBMemberControl({required ModificationTracker tracker, required Entity entity, required int index, Card renderCard(BuildContext, EliteORMEditorStyle, dynamic)?, dynamic controller, String? hint = "", bool obscure = false})
Construct a database member control object specifically for handling List objects.

Properties

asInt bool
Forces the value to be treated as an int if it is a double.
getter/setter pairinherited
checkbox bool
Use a Checkbox (instead of a Switch) for boolean database members.
getter/setter pairinherited
completeValues List<String>?
A list of values to provide as completion to text entered into a TextField.
getter/setter pairinherited
controller → dynamic
If applicable, this is the TextEditingController associated with this DBMember. Not all DBMembers will need a controller.
finalinherited
entity → Entity
The storage object for modification.
finalinherited
fromDisplay ↔ dynamic Function(dynamic v)
A function to convert from the display value to a value suitable for storage in the database.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hint String?
This stores the text hint for TextFields when used.
getter/setter pairinherited
index int
The index into the data members of the Entity object. In general, there is a DBMemberControl for each DBMember.
finalinherited
label String?
A label is optional and will be displayed after a TextField, if available.
getter/setter pairinherited
lastAdded → dynamic
Gets the last value added to the database member list.
no setter
member → DBMember
Return the database member associated with this control object.
no setterinherited
obscure bool
Tells the TextField whether or not to obscure the text.
getter/setter pairinherited
readOnly bool
If true, make this member read-only.
getter/setter pairinherited
renderCard ↔ (Card Function(BuildContext, EliteORMEditorStyle, dynamic)?)
Use this dynamic function to generate the Card widget for each instance within the list.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sorter int Function(dynamic a, dynamic b)
Implement a sorter for use with List.sort() for two database entities. This will determine the order in which the entities are listed on the screen. The default implementation does nothing.
getter/setter pair
toDisplay ↔ dynamic Function(dynamic v)
A function to convert from the stored value to a display value.
getter/setter pairinherited

Methods

add(dynamic value) → void
Use this to add the value to the database member and cause the attached listeners to be called.
addListener(dynamic listener()) → void
Add a listener to this control object.
inherited
callListeners() → void
Call each listener attached to this control object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(dynamic value) → void
Use this to set the value of the database member and cause the attached listeners to be called.
inherited
setController(dynamic value) → void
This can be overridden if the default string representation of the value is not suitable for display.
inherited
setValue(dynamic value) → void
This can be overridden if the value needs to be transformed in some way before being assigned to the database member. Be sure to call callListeners() in your implementation!
inherited
splitWords(String start) String
This is a utility method for splitting a label-type string into separate space separated words.
inherited
toString() String
A string representation of this object.
inherited

Operators

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