ActiveString class

An ActiveString with similar characteristics as a an ordinary dart List object. When an update is done an ActiveStateChanged event is triggered which in-turn makes a UI rebuild of that widget.

Has similar characteristics as int and The value cannot be null

Inheritance

Constructors

ActiveString.new(String value, {String? typeName})
ActiveString.empty({String? typeName})
Factory constructor for initializing an ActiveString to an empty String.
factory

Properties

activeController ActiveController
Returns the instance of the ActiveController this property is associated with.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether the string value is empty
no setter
isNotEmpty bool
Whether the string value is empty or not
no setter
isNotNull bool
Returns true if the value of this is not null.
no setterinherited
isNull bool
Returns true if the value of this is null.
no setterinherited
length int
The length of the string value.
no setter
mockValue String
no setterinherited
originalValue String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String?
getter/setter pairinherited
value String
no setterinherited

Methods

call(String value, {bool notifyChange = true, bool setAsOriginal = false}) → void
Updates the underlying value for this ActiveType.
inherited
contains(String other, [int startIndex = 0]) bool
Whether the string value contains a match of other.
equals(dynamic other) bool
Checks if other is equal to the value of this ActiveType
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset({bool notifyChange = true}) → void
Resets the value to the originalValue.
inherited
set(String value, {bool notifyChange = true, bool setAsOriginal = false}) String
Updates the property value. Notifies any listeners to the change
inherited
setActiveController(ActiveController activeController) → void
Links this ActiveType instance with an ActiveController.
inherited
setOriginalValueToCurrent() → void
Updates the original value to what the current value of this property is.
inherited
substring(int start, [int? end]) String
The substring of the string value from start, inclusive, to end, exclusive.
toString() String
A string representation of this object.
inherited

Operators

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