Signal<T> class
A base-class that store a value of T
and notify the listeners
when the value is updated.
You can create a new Signal:
// usign `.signal` extension
final strSignal = "initial value".signal;
final intSignal = 0.signal;
final userSignal = User().signal;
// or usign the constructor class
final strSignal = Signal<String>("initial value");
final intSignal = Signal<int>(0);
final userSignal = Signal<User>(User());
You can get the value:
// usign a `value` getter
print(strSignal.value);
// or using the callable
print(strSignal());
// or using `toString` implicit
print("$intSignal");
You can set a new value:
// usign a `value` setter
strSignal.value = "change value";
// or using the callable
strSignal("change value");
You can use Lifecycle.willUpdate
event for before the value is changed,
or use Lifecicle.didUpdate
event for after the value is changed:
Reactter.on(
strSignal,
Lifecycle.willUpdate,
(signal, _) => print("Previous value: $signal"),
);
Reactter.on(
strSignal,
Lifecycle.didUpdate,
(signal, _) => print("Current value: $signal"),
);
Use update
method to notify changes after run a set of instructions:
userSignal.update((user) {
user.firstname = "Leo";
user.lastname = "Leon";
});
Use refresh
method to force to notify changes.
userSignal.refresh();
If you use flutter, add flutter_reactter
package on your dependencies and use its Widgets.
See also:
- Obj, a base-class that can be used to store a value of
T
.
- Inheritance
- Mixed-in types
- Available extensions
- ObjBigIntExt
- ObjBigIntNullExt
- ObjBoolExt
- ObjDateTimeExt
- ObjDateTimeNullExt
- ObjDoubleExt
- ObjDoubleNullExt
- ObjIntExt
- ObjIntNullExt
- ObjIterableExt
- ObjIterableNullExt
- ObjListExt
- ObjListNullExt
- ObjMapExt
- ObjMapNullExt
- ObjNullExt
- ObjNumExt
- ObjNumNullExt
- ObjSetExt
- ObjSetNullExt
- ObjStringExt
- ObjStringNullExt
- ObjToSignalExt
- SignalListExt
- SignalListNullExt
- SignalMapExt
- SignalMapNullExt
- SignalNullExt
- SignalSetExt
- SignalSetNullExt
- SignalToObjExt
Constructors
- Signal(T initial)
Properties
- bitLength → int?
-
Available on Obj<
Returns the minimum number of bits required to store this integer.int?> , provided by the ObjIntNullExt extensionno setter - bitLength → int
-
Available on Obj<
Returns the minimum number of bits required to store this big integer.BigInt> , provided by the ObjBigIntExt extensionno setter - bitLength → int?
-
Available on Obj<
Returns the minimum number of bits required to store this big integer.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - bitLength → int
-
Available on Obj<
Returns the minimum number of bits required to store this integer.int> , provided by the ObjIntExt extensionno setter -
codeUnits
→ List<
int> ? -
Available on Obj<
An unmodifiable list of the UTF-16 code units of this string.String?> , provided by the ObjStringNullExt extensionno setter -
codeUnits
→ List<
int> -
Available on Obj<
An unmodifiable list of the UTF-16 code units of this string.String> , provided by the ObjStringExt extensionno setter - day → int
-
Available on Obj<
The day of the monthDateTime> , provided by the ObjDateTimeExt extension[1..31]
.no setter - day → int?
-
Available on Obj<
The day of the monthDateTime?> , provided by the ObjDateTimeNullExt extension[1..31]
.no setter -
entries
→ Iterable<
MapEntry< K, V> > -
Available on Obj<
The map entries ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter -
entries
→ Iterable<
MapEntry< ?K, V> > -
Available on Obj<
The map entries ofMap< , provided by the ObjMapNullExt extensionK, V> ?>this
.no setter - first ← E
-
Available on Signal<
The first element of the list.List< , provided by the SignalListNullExt extensionE> ?>no getter - first ← E
-
Available on Signal<
The first element of the list.List< , provided by the SignalListExt extensionE> >no getter - first ← E
-
Available on Obj<
The first element of the list.List< , provided by the ObjListExt extensionE> >no getter - first ← E
-
Available on Obj<
The first element of the list.List< , provided by the ObjListNullExt extensionE> ?>no getter - first → E?
-
Available on Obj<
Returns the first element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - first → E
-
Available on Obj<
Returns the first element.Iterable< , provided by the ObjIterableExt extensionE> >no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hour → int
-
Available on Obj<
The hour of the day, expressed as in a 24-hour clockDateTime> , provided by the ObjDateTimeExt extension[0..23]
.no setter - hour → int?
-
Available on Obj<
The hour of the day, expressed as in a 24-hour clockDateTime?> , provided by the ObjDateTimeNullExt extension[0..23]
.no setter - isEmpty → bool
-
Available on Obj<
Whether there is no key/value pair in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter - isEmpty → bool?
-
Available on Obj<
Whether this string is empty.String?> , provided by the ObjStringNullExt extensionno setter - isEmpty → bool
-
Available on Obj<
Whether this string is empty.String> , provided by the ObjStringExt extensionno setter - isEmpty → bool?
-
Available on Obj<
Whether there is no key/value pair in the map.Map< , provided by the ObjMapNullExt extensionK, V> ?>no setter - isEmpty → bool?
-
Available on Obj<
Whether this collection has no elements.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - isEmpty → bool
-
Available on Obj<
Whether this collection has no elements.Iterable< , provided by the ObjIterableExt extensionE> >no setter - isEven → bool
-
Available on Obj<
Returns true if and only if this integer is even.int> , provided by the ObjIntExt extensionno setter - isEven → bool
-
Available on Obj<
Whether this big integer is even.BigInt> , provided by the ObjBigIntExt extensionno setter - isEven → bool?
-
Available on Obj<
Returns true if and only if this integer is even.int?> , provided by the ObjIntNullExt extensionno setter - isEven → bool?
-
Available on Obj<
Whether this big integer is even.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isFinite → bool?
-
Available on Obj<
Whether this number is finite.num?> , provided by the ObjNumNullExt extensionno setter - isFinite → bool
-
Available on Obj<
Whether this number is finite.num> , provided by the ObjNumExt extensionno setter - isInfinite → bool?
-
Available on Obj<
Whether this number is positive infinity or negative infinity.num?> , provided by the ObjNumNullExt extensionno setter - isInfinite → bool
-
Available on Obj<
Whether this number is positive infinity or negative infinity.num> , provided by the ObjNumExt extensionno setter - isNaN → bool?
-
Available on Obj<
Whether this number is a Not-a-Number value.num?> , provided by the ObjNumNullExt extensionno setter - isNaN → bool
-
Available on Obj<
Whether this number is a Not-a-Number value.num> , provided by the ObjNumExt extensionno setter - isNegative → bool?
-
Available on Obj<
Whether this number is negative.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isNegative → bool
-
Available on Obj<
Whether this number is negative.BigInt> , provided by the ObjBigIntExt extensionno setter - isNegative → bool?
-
Available on Obj<
Whether this number is negative.num?> , provided by the ObjNumNullExt extensionno setter - isNegative → bool
-
Available on Obj<
Whether this number is negative.num> , provided by the ObjNumExt extensionno setter - isNotEmpty → bool?
-
Available on Obj<
Whether this collection has at least one element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - isNotEmpty → bool?
-
Available on Obj<
Whether this string is not empty.String?> , provided by the ObjStringNullExt extensionno setter - isNotEmpty → bool
-
Available on Obj<
Whether there is at least one key/value pair in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter - isNotEmpty → bool
-
Available on Obj<
Whether this string is not empty.String> , provided by the ObjStringExt extensionno setter - isNotEmpty → bool
-
Available on Obj<
Whether this collection has at least one element.Iterable< , provided by the ObjIterableExt extensionE> >no setter - isNotEmpty → bool?
-
Available on Obj<
Whether there is at least one key/value pair in the map.Map< , provided by the ObjMapNullExt extensionK, V> ?>no setter - isOdd → bool
-
Available on Obj<
Returns true if and only if this integer is odd.int> , provided by the ObjIntExt extensionno setter - isOdd → bool?
-
Available on Obj<
Whether this big integer is odd.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - isOdd → bool
-
Available on Obj<
Whether this big integer is odd.BigInt> , provided by the ObjBigIntExt extensionno setter - isOdd → bool?
-
Available on Obj<
Returns true if and only if this integer is odd.int?> , provided by the ObjIntNullExt extensionno setter - isValidInt → bool?
-
Available on Obj<
Whether this big integer can be represented as anBigInt?> , provided by the ObjBigIntNullExt extensionint
without losing precision.no setter - isValidInt → bool
-
Available on Obj<
Whether this big integer can be represented as anBigInt> , provided by the ObjBigIntExt extensionint
without losing precision.no setter -
iterator
→ Iterator<
E> ? -
Available on Obj<
An iterator that iterates over the elements of this set.Set< , provided by the ObjSetNullExt extensionE> ?>no setter -
iterator
→ Iterator<
E> ? -
Available on Obj<
Returns a newIterable< , provided by the ObjIterableNullExt extensionE> ?>Iterator
that allows iterating the elements of thisIterable
.no setter -
iterator
→ Iterator<
E> -
Available on Obj<
An iterator that iterates over the elements of this set.Set< , provided by the ObjSetExt extensionE> >no setter -
iterator
→ Iterator<
E> -
Available on Obj<
Returns a newIterable< , provided by the ObjIterableExt extensionE> >Iterator
that allows iterating the elements of thisIterable
.no setter -
keys
→ Iterable<
K> ? -
Available on Obj<
The keys ofMap< , provided by the ObjMapNullExt extensionK, V> ?>this
.no setter -
keys
→ Iterable<
K> -
Available on Obj<
The keys ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter - last ← E
-
Available on Signal<
The last element of the list.List< , provided by the SignalListExt extensionE> >no getter - last → E
-
Available on Obj<
Returns the last element.Iterable< , provided by the ObjIterableExt extensionE> >no setter - last ← E
-
Available on Signal<
The last element of the list.List< , provided by the SignalListNullExt extensionE> ?>no getter - last → E?
-
Available on Obj<
Returns the last element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - last ← E
-
Available on Obj<
The last element of the list.List< , provided by the ObjListExt extensionE> >no getter - last ← E
-
Available on Obj<
The last element of the list.List< , provided by the ObjListNullExt extensionE> ?>no getter - length → int
-
Available on Obj<
Returns the number of elements inIterable< , provided by the ObjIterableExt extensionE> >this
.no setter - length ← int
-
Available on Signal<
Setting theList< , provided by the SignalListNullExt extensionE> ?>length
changes the number of elements in the list.no getter - length → int?
-
Available on Obj<
Returns the number of elements inIterable< , provided by the ObjIterableNullExt extensionE> ?>this
.no setter - length → int
-
Available on Obj<
The length of the string.String> , provided by the ObjStringExt extensionno setter - length → int?
-
Available on Obj<
The number of key/value pairs in the map.Map< , provided by the ObjMapNullExt extensionK, V> ?>no setter - length ← int
-
Available on Signal<
Setting theList< , provided by the SignalListExt extensionE> >length
changes the number of elements in the list.no getter - length → int?
-
Available on Obj<
The length of the string.String?> , provided by the ObjStringNullExt extensionno setter - length ↔ int
-
Available on Obj<
The number of objects in this list.List< , provided by the ObjListExt extensionE> >getter/setter pair - length → int
-
Available on Obj<
The number of key/value pairs in the map.Map< , provided by the ObjMapExt extensionK, V> >no setter - length ↔ int
-
Available on Obj<
The number of objects in this list.List< , provided by the ObjListNullExt extensionE> ?>getter/setter pair - microsecond → int
-
Available on Obj<
The microsecondDateTime> , provided by the ObjDateTimeExt extension[0...999]
.no setter - microsecond → int?
-
Available on Obj<
The microsecondDateTime?> , provided by the ObjDateTimeNullExt extension[0...999]
.no setter - microsecondsSinceEpoch → int
-
Available on Obj<
The number of microseconds since the "Unix epoch" 1970-01-01T00:00:00Z (UTC).DateTime> , provided by the ObjDateTimeExt extensionno setter - microsecondsSinceEpoch → int?
-
Available on Obj<
The number of microseconds since the "Unix epoch" 1970-01-01T00:00:00Z (UTC).DateTime?> , provided by the ObjDateTimeNullExt extensionno setter - millisecond → int
-
Available on Obj<
The millisecondDateTime> , provided by the ObjDateTimeExt extension[0...999]
.no setter - millisecond → int?
-
Available on Obj<
The millisecondDateTime?> , provided by the ObjDateTimeNullExt extension[0...999]
.no setter - millisecondsSinceEpoch → int
-
Available on Obj<
The number of milliseconds since the "Unix epoch" 1970-01-01T00:00:00Z (UTC).DateTime> , provided by the ObjDateTimeExt extensionno setter - millisecondsSinceEpoch → int?
-
Available on Obj<
The number of milliseconds since the "Unix epoch" 1970-01-01T00:00:00Z (UTC).DateTime?> , provided by the ObjDateTimeNullExt extensionno setter - minute → int?
-
Available on Obj<
The minuteDateTime?> , provided by the ObjDateTimeNullExt extension[0...59]
.no setter - minute → int
-
Available on Obj<
The minuteDateTime> , provided by the ObjDateTimeExt extension[0...59]
.no setter - month → int?
-
Available on Obj<
The monthDateTime?> , provided by the ObjDateTimeNullExt extension[1..12]
.no setter - month → int
-
Available on Obj<
The monthDateTime> , provided by the ObjDateTimeExt extension[1..12]
.no setter -
notNull
→ Signal<
T> -
Available on Signal<
Returns a newT?> , provided by the SignalNullExt extensionSignal<T>
with the value of the currentSignal<T?>
if it's not null.no setter -
notNull
→ Obj<
T> -
Available on Obj<
Returns a newT?> , provided by the ObjNullExt extensionObj<T>
with the value of the currentObj<T?>
if it's not null.no setter -
reversed
→ Iterable<
E> -
Available on Obj<
An Iterable of the objects in this list in reverse order.List< , provided by the ObjListExt extensionE> >no setter -
reversed
→ Iterable<
E> ? -
Available on Obj<
An Iterable of the objects in this list in reverse order.List< , provided by the ObjListNullExt extensionE> ?>no setter - runes → Runes
-
Available on Obj<
An Iterable of Unicode code-points of this string.String> , provided by the ObjStringExt extensionno setter - runes → Runes?
-
Available on Obj<
An Iterable of Unicode code-points of this string.String?> , provided by the ObjStringNullExt extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second → int
-
Available on Obj<
The secondDateTime> , provided by the ObjDateTimeExt extension[0...59]
.no setter - second → int?
-
Available on Obj<
The secondDateTime?> , provided by the ObjDateTimeNullExt extension[0...59]
.no setter - sign → num
-
Available on Obj<
Negative one, zero or positive one depending on the sign and numerical value of this number.num> , provided by the ObjNumExt extensionno setter - sign → double?
-
Available on Obj<
The sign of the double's numerical value.double?> , provided by the ObjDoubleNullExt extensionno setter - sign → double
-
Available on Obj<
The sign of the double's numerical value.double> , provided by the ObjDoubleExt extensionno setter - sign → int
-
Available on Obj<
Returns the sign of this big integer.BigInt> , provided by the ObjBigIntExt extensionno setter - sign → int
-
Available on Obj<
Returns the sign of this integer.int> , provided by the ObjIntExt extensionno setter - sign → int?
-
Available on Obj<
Returns the sign of this integer.int?> , provided by the ObjIntNullExt extensionno setter - sign → int?
-
Available on Obj<
Returns the sign of this big integer.BigInt?> , provided by the ObjBigIntNullExt extensionno setter - sign → num?
-
Available on Obj<
Negative one, zero or positive one depending on the sign and numerical value of this number.num?> , provided by the ObjNumNullExt extensionno setter - single → E
-
Available on Obj<
Checks that this iterable has only one element, and returns that element.Iterable< , provided by the ObjIterableExt extensionE> >no setter - single → E?
-
Available on Obj<
Checks that this iterable has only one element, and returns that element.Iterable< , provided by the ObjIterableNullExt extensionE> ?>no setter - timeZoneName → String?
-
Available on Obj<
The time zone name.DateTime?> , provided by the ObjDateTimeNullExt extensionno setter - timeZoneName → String
-
Available on Obj<
The time zone name.DateTime> , provided by the ObjDateTimeExt extensionno setter - timeZoneOffset → Duration?
-
Available on Obj<
The time zone offset, which is the difference between local time and UTC.DateTime?> , provided by the ObjDateTimeNullExt extensionno setter - timeZoneOffset → Duration
-
Available on Obj<
The time zone offset, which is the difference between local time and UTC.DateTime> , provided by the ObjDateTimeExt extensionno setter -
toObj
→ Obj<
T> -
Available on Signal<
Returns a new ObjT> , provided by the SignalToObjExt extensionno setter -
toSignal
→ Signal<
T> -
Available on Obj<
Returns a new SignalT> , provided by the ObjToSignalExt extensionno setter - value ↔ T
-
Returns the value of the signal.
getter/setter pairoverride
-
values
→ Iterable<
V> -
Available on Obj<
The values ofMap< , provided by the ObjMapExt extensionK, V> >this
.no setter -
values
→ Iterable<
V> ? -
Available on Obj<
The values ofMap< , provided by the ObjMapNullExt extensionK, V> ?>this
.no setter - weekday → int?
-
Available on Obj<
The day of the weekDateTime?> , provided by the ObjDateTimeNullExt extensionmonday
..sunday
.no setter - weekday → int
-
Available on Obj<
The day of the weekDateTime> , provided by the ObjDateTimeExt extensionmonday
..sunday
.no setter - year → int
-
Available on Obj<
The year.DateTime> , provided by the ObjDateTimeExt extensionno setter - year → int?
-
Available on Obj<
The year.DateTime?> , provided by the ObjDateTimeNullExt extensionno setter
Methods
-
abs(
) → num? -
Available on Obj<
The absolute value of this number.num?> , provided by the ObjNumNullExt extension -
abs(
) → BigInt -
Available on Obj<
Returns the absolute value of this integer.BigInt> , provided by the ObjBigIntExt extension -
abs(
) → BigInt? -
Available on Obj<
Returns the absolute value of this integer.BigInt?> , provided by the ObjBigIntNullExt extension -
abs(
) → double -
Available on Obj<
Returns the absolute value of this integer.double> , provided by the ObjDoubleExt extension -
abs(
) → double? -
Available on Obj<
Returns the absolute value of this integer.double?> , provided by the ObjDoubleNullExt extension -
abs(
) → int - Returns the absolute value of this integer.
-
abs(
) → int? -
Available on Obj<
Returns the absolute value of this integer.int?> , provided by the ObjIntNullExt extension -
abs(
) → num - The absolute value of this number.
-
add(
E valueToAdd) → void -
Available on Obj<
Adds value to the end of this list, extending the length by one.List< , provided by the ObjListNullExt extensionE> ?> -
add(
E valueToAdd) → bool? -
Available on Obj<
Adds value to the set.Set< , provided by the ObjSetNullExt extensionE> ?> -
add(
Duration duration) → DateTime -
Available on Obj<
Returns a new DateTime instance withDateTime> , provided by the ObjDateTimeExt extensionduration
added tothis
. -
add(
E valueToAdd) → bool? -
Available on Signal<
Adds value to the set.Set< , provided by the SignalSetNullExt extensionE> ?> -
add(
Duration duration) → DateTime? -
Available on Obj<
Returns a new DateTime instance withDateTime?> , provided by the ObjDateTimeNullExt extensionduration
added tothis
. -
add(
E valueToAdd) → bool -
Available on Signal<
Adds value to the set.Set< , provided by the SignalSetExt extensionE> > -
add(
E valueToAdd) → void -
Available on Obj<
Adds value to the end of this list, extending the length by one.List< , provided by the ObjListExt extensionE> > -
add(
E valueToAdd) → bool -
Available on Obj<
Adds value to the set.Set< , provided by the ObjSetExt extensionE> > -
add(
E valueToAdd) → void -
Available on Signal<
Adds value to the end of this list, extending the length by one.List< , provided by the SignalListNullExt extensionE> ?> -
add(
E valueToAdd) → void -
Available on Signal<
Adds value to the end of this list, extending the length by one.List< , provided by the SignalListExt extensionE> > -
addAll(
Map< K, V> other) → void -
Available on Signal<
Adds all key/value pairs ofMap< , provided by the SignalMapExt extensionK, V> >other
to this map. -
addAll(
Iterable< E> iterable) → void -
Available on Signal<
Appends all objects ofList< , provided by the SignalListNullExt extensionE> ?>iterable
to the end of this list. -
addAll(
Iterable< E> iterable) → void -
Available on Signal<
Appends all objects ofList< , provided by the SignalListExt extensionE> >iterable
to the end of this list. -
addAll(
Iterable< E> elements) → void -
Available on Signal<
Adds allSet< , provided by the SignalSetExt extensionE> >elements
to this set. -
addAll(
Iterable< E> elements) → void -
Available on Obj<
Adds allSet< , provided by the ObjSetNullExt extensionE> ?>elements
to this set. -
addAll(
Map< K, V> other) → void -
Available on Signal<
Adds all key/value pairs ofMap< , provided by the SignalMapNullExt extensionK, V> ?>other
to this map. -
addAll(
Map< K, V> other) → void -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapExt extensionK, V> >other
to this map. -
addAll(
Map< K, V> other) → void -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapNullExt extensionK, V> ?>other
to this map. -
addAll(
Iterable< E> iterable) → void -
Available on Obj<
Appends all objects ofList< , provided by the ObjListExt extensionE> >iterable
to the end of this list. -
addAll(
Iterable< E> elements) → void -
Available on Signal<
Adds allSet< , provided by the SignalSetNullExt extensionE> ?>elements
to this set. -
addAll(
Iterable< E> iterable) → void -
Available on Obj<
Appends all objects ofList< , provided by the ObjListNullExt extensionE> ?>iterable
to the end of this list. -
addAll(
Iterable< E> elements) → void -
Available on Obj<
Adds allSet< , provided by the ObjSetExt extensionE> >elements
to this set. -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Available on Signal<
Adds all key/value pairs ofMap< , provided by the SignalMapExt extensionK, V> >newEntries
to this map. -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapNullExt extensionK, V> ?>newEntries
to this map. -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Available on Signal<
Adds all key/value pairs ofMap< , provided by the SignalMapNullExt extensionK, V> ?>newEntries
to this map. -
addEntries(
Iterable< MapEntry< newEntries) → voidK, V> > -
Available on Obj<
Adds all key/value pairs ofMap< , provided by the ObjMapExt extensionK, V> >newEntries
to this map. -
any(
bool test(E element)) → bool -
Available on Obj<
Checks whether any element of this iterable satisfiesIterable< , provided by the ObjIterableExt extensionE> >test
. -
any(
bool test(E element)) → bool? -
Available on Obj<
Checks whether any element of this iterable satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
asMap(
) → Map< int, E> -
Available on Obj<
An unmodifiable Map view of this list.List< , provided by the ObjListExt extensionE> > -
asMap(
) → Map< int, E> ? -
Available on Obj<
An unmodifiable Map view of this list.List< , provided by the ObjListNullExt extensionE> ?> -
call(
[T? val]) → T -
Gets and/or sets to value like a function
This method doesn't allow setting its value to null.
If you need to set null as value, use
.value = null
.override -
cast<
R> () → Iterable< R> -
Available on Obj<
Provides a view of this iterable as an iterable ofIterable< , provided by the ObjIterableExt extensionE> >R
instances. -
cast<
R> () → Iterable< R> ? -
Available on Obj<
Provides a view of this iterable as an iterable ofIterable< , provided by the ObjIterableNullExt extensionE> ?>R
instances. -
cast<
RK, RV> () → Map< RK, RV> ? -
Available on Obj<
Provides a view of this map as havingMap< , provided by the ObjMapNullExt extensionK, V> ?>RK
keys andRV
instances, if necessary. -
cast<
R> () → Set< R> ? -
Available on Obj<
Provides a view of this set as a set ofSet< , provided by the ObjSetNullExt extensionE> ?>R
instances. -
cast<
R> () → List< R> -
Available on Obj<
Returns a view of this list as a list ofList< , provided by the ObjListExt extensionE> >R
instances. -
cast<
R> () → List< R> ? -
Available on Obj<
Returns a view of this list as a list ofList< , provided by the ObjListNullExt extensionE> ?>R
instances. -
cast<
RK, RV> () → Map< RK, RV> -
Available on Obj<
Provides a view of this map as havingMap< , provided by the ObjMapExt extensionK, V> >RK
keys andRV
instances, if necessary. -
cast<
R> () → Set< R> -
Available on Obj<
Provides a view of this set as a set ofSet< , provided by the ObjSetExt extensionE> >R
instances. -
ceil(
) → int? -
Available on Obj<
Returns the least integer that is not smaller than this number.double?> , provided by the ObjDoubleNullExt extension -
ceil(
) → int -
Available on Obj<
Returns the least integer that is not smaller than this number.double> , provided by the ObjDoubleExt extension -
ceil(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
ceil(
) → int -
Available on Obj<
The least integer no smaller thannum> , provided by the ObjNumExt extensionthis
. -
ceil(
) → int -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis
. -
ceil(
) → int? -
Available on Obj<
The least integer no smaller thannum?> , provided by the ObjNumNullExt extensionthis
. -
ceilToDouble(
) → double -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis.toDouble()
. -
ceilToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
ceilToDouble(
) → double? -
Available on Obj<
Returns the least double integer value no smaller thannum?> , provided by the ObjNumNullExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Obj<
Returns the least integer double value no smaller thandouble?> , provided by the ObjDoubleNullExt extensionthis
. -
ceilToDouble(
) → double -
Available on Obj<
Returns the least double integer value no smaller thannum> , provided by the ObjNumExt extensionthis
. -
ceilToDouble(
) → double -
Available on Obj<
Returns the least integer double value no smaller thandouble> , provided by the ObjDoubleExt extensionthis
. -
clamp(
num lowerLimit, num upperLimit) → num? -
Available on Obj<
Returns this num clamped to be in the rangenum?> , provided by the ObjNumNullExt extensionlowerLimit
-upperLimit
. -
clamp(
num lowerLimit, num upperLimit) → num -
Available on Obj<
Returns this num clamped to be in the rangenum> , provided by the ObjNumExt extensionlowerLimit
-upperLimit
. -
clear(
) → void -
Available on Obj<
Removes all objects from this list; the length of the list becomes zero.List< , provided by the ObjListNullExt extensionE> ?> -
clear(
) → void -
Available on Signal<
Removes all elements from the set.Set< , provided by the SignalSetNullExt extensionE> ?> -
clear(
) → void -
Available on Signal<
Removes all elements from the set.Set< , provided by the SignalSetExt extensionE> > -
clear(
) → void -
Available on Signal<
Removes all entries from the map.Map< , provided by the SignalMapNullExt extensionK, V> ?> -
clear(
) → void -
Available on Signal<
Removes all objects from this list; the length of the list becomes zero.List< , provided by the SignalListExt extensionE> > -
clear(
) → void -
Available on Obj<
Removes all entries from the map.Map< , provided by the ObjMapExt extensionK, V> > -
clear(
) → void -
Available on Obj<
Removes all elements from the set.Set< , provided by the ObjSetExt extensionE> > -
clear(
) → void -
Available on Obj<
Removes all entries from the map.Map< , provided by the ObjMapNullExt extensionK, V> ?> -
clear(
) → void -
Available on Obj<
Removes all elements from the set.Set< , provided by the ObjSetNullExt extensionE> ?> -
clear(
) → void -
Available on Obj<
Removes all objects from this list; the length of the list becomes zero.List< , provided by the ObjListExt extensionE> > -
clear(
) → void -
Available on Signal<
Removes all entries from the map.Map< , provided by the SignalMapExt extensionK, V> > -
clear(
) → void -
Available on Signal<
Removes all objects from this list; the length of the list becomes zero.List< , provided by the SignalListNullExt extensionE> ?> -
codeUnitAt(
int index) → int? -
Available on Obj<
Returns the 16-bit UTF-16 code unit at the givenString?> , provided by the ObjStringNullExt extensionindex
. -
codeUnitAt(
int index) → int -
Available on Obj<
Returns the 16-bit UTF-16 code unit at the givenString> , provided by the ObjStringExt extensionindex
. -
compareTo(
BigInt other) → int -
Available on Obj<
Compares this toBigInt> , provided by the ObjBigIntExt extensionother
. -
compareTo(
String other) → int? -
Available on Obj<
Compares this string toString?> , provided by the ObjStringNullExt extensionother
. -
compareTo(
DateTime other) → int? -
Available on Obj<
Compares this DateTime object toDateTime?> , provided by the ObjDateTimeNullExt extensionother
, returning zero if the values are equal. -
compareTo(
String other) → int -
Available on Obj<
Compares this string toString> , provided by the ObjStringExt extensionother
. -
compareTo(
num other) → int -
Available on Obj<
Compares this tonum> , provided by the ObjNumExt extensionother
. -
compareTo(
BigInt other) → int? -
Available on Obj<
Compares this toBigInt?> , provided by the ObjBigIntNullExt extensionother
. -
compareTo(
num other) → int? -
Available on Obj<
Compares this tonum?> , provided by the ObjNumNullExt extensionother
. -
compareTo(
DateTime other) → int -
Available on Obj<
Compares this DateTime object toDateTime> , provided by the ObjDateTimeExt extensionother
, returning zero if the values are equal. -
contains(
Object? valueToEvaluate) → bool? -
Available on Obj<
Whether value is in the set.Set< , provided by the ObjSetNullExt extensionE> ?> -
contains(
Pattern other, [int startIndex = 0]) → bool -
Available on Obj<
Whether this string contains a match ofString> , provided by the ObjStringExt extensionother
. -
contains(
Object? element) → bool? -
Available on Obj<
Whether the collection contains an element equal toIterable< , provided by the ObjIterableNullExt extensionE> ?>element
. -
contains(
Object? valueToEvaluate) → bool -
Available on Obj<
Whether value is in the set.Set< , provided by the ObjSetExt extensionE> > -
contains(
Pattern other, [int startIndex = 0]) → bool? -
Available on Obj<
Whether this string contains a match ofString?> , provided by the ObjStringNullExt extensionother
. -
contains(
Object? element) → bool -
Available on Obj<
Whether the collection contains an element equal toIterable< , provided by the ObjIterableExt extensionE> >element
. -
containsAll(
Iterable< Object?> other) → bool -
Available on Obj<
Whether this set contains all the elements ofSet< , provided by the ObjSetExt extensionE> >other
. -
containsAll(
Iterable< Object?> other) → bool? -
Available on Obj<
Whether this set contains all the elements ofSet< , provided by the ObjSetNullExt extensionE> ?>other
. -
containsKey(
Object? key) → bool? -
Available on Obj<
Whether this map contains the givenMap< , provided by the ObjMapNullExt extensionK, V> ?>key
. -
containsKey(
Object? key) → bool -
Available on Obj<
Whether this map contains the givenMap< , provided by the ObjMapExt extensionK, V> >key
. -
containsValue(
Object? valueToEvaluate) → bool? -
Available on Obj<
Whether this map contains the given value.Map< , provided by the ObjMapNullExt extensionK, V> ?> -
containsValue(
Object? valueToEvaluate) → bool -
Available on Obj<
Whether this map contains the given value.Map< , provided by the ObjMapExt extensionK, V> > -
difference(
Set< Object?> other) → Set<E> -
Available on Obj<
Creates a new set with the elements of this that are not inSet< , provided by the ObjSetExt extensionE> >other
. -
difference(
Set< Object?> other) → Set<E> ? -
Available on Obj<
Creates a new set with the elements of this that are not inSet< , provided by the ObjSetNullExt extensionE> ?>other
. -
difference(
DateTime other) → Duration? -
Available on Obj<
Returns a Duration with the difference when subtractingDateTime?> , provided by the ObjDateTimeNullExt extensionother
fromthis
. -
difference(
DateTime other) → Duration -
Available on Obj<
Returns a Duration with the difference when subtractingDateTime> , provided by the ObjDateTimeExt extensionother
fromthis
. -
dispose(
) → void -
Called when this object is removed
inherited
-
elementAt(
int index) → E? -
Available on Obj<
Returns theIterable< , provided by the ObjIterableNullExt extensionE> ?>index
th element. -
elementAt(
int index) → E -
Available on Obj<
Returns theIterable< , provided by the ObjIterableExt extensionE> >index
th element. -
endsWith(
String other) → bool -
Available on Obj<
Whether this string ends withString> , provided by the ObjStringExt extensionother
. -
endsWith(
String other) → bool? -
Available on Obj<
Whether this string ends withString?> , provided by the ObjStringNullExt extensionother
. -
every(
bool test(E element)) → bool? -
Available on Obj<
Checks whether every element of this iterable satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
every(
bool test(E element)) → bool -
Available on Obj<
Checks whether every element of this iterable satisfiesIterable< , provided by the ObjIterableExt extensionE> >test
. -
expand<
T> (Iterable< T> toElements(E element)) → Iterable<T> ? -
Available on Obj<
Expands each element of this Iterable into zero or more elements.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
expand<
T> (Iterable< T> toElements(E element)) → Iterable<T> -
Available on Obj<
Expands each element of this Iterable into zero or more elements.Iterable< , provided by the ObjIterableExt extensionE> > -
fillRange(
int start, int end, [E? fillValue]) → void -
Available on Obj<
Overwrites a range of elements withList< , provided by the ObjListNullExt extensionE> ?>fillValue
. -
fillRange(
int start, int end, [E? fillValue]) → void -
Available on Obj<
Overwrites a range of elements withList< , provided by the ObjListExt extensionE> >fillValue
. -
fillRange(
int start, int end, [E? fillValue]) → void -
Available on Signal<
Overwrites a range of elements withList< , provided by the SignalListNullExt extensionE> ?>fillValue
. -
fillRange(
int start, int end, [E? fillValue]) → void -
Available on Signal<
Overwrites a range of elements withList< , provided by the SignalListExt extensionE> >fillValue
. -
firstWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the first element that satisfies the given predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
firstWhere(
bool test(E element), {E orElse()?}) → E -
Available on Obj<
Returns the first element that satisfies the given predicateIterable< , provided by the ObjIterableExt extensionE> >test
. -
floor(
) → int? -
Available on Obj<
The greatest integer no greater than this number.num?> , provided by the ObjNumNullExt extension -
floor(
) → int - The greatest integer no greater than this number.
-
floor(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
floor(
) → int -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis
. -
floor(
) → int? -
Available on Obj<
Returns the greatest integer no greater than this number.double?> , provided by the ObjDoubleNullExt extension -
floor(
) → int -
Available on Obj<
Returns the greatest integer no greater than this number.double> , provided by the ObjDoubleExt extension -
floorToDouble(
) → double -
Available on Obj<
Returns the greatest double integer value no greater thannum> , provided by the ObjNumExt extensionthis
. -
floorToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
floorToDouble(
) → double -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis.toDouble()
. -
floorToDouble(
) → double? -
Available on Obj<
Returns the greatest integer double value no greater thandouble?> , provided by the ObjDoubleNullExt extensionthis
. -
floorToDouble(
) → double -
Available on Obj<
Returns the greatest integer double value no greater thandouble> , provided by the ObjDoubleExt extensionthis
. -
floorToDouble(
) → double? -
Available on Obj<
Returns the greatest double integer value no greater thannum?> , provided by the ObjNumNullExt extensionthis
. -
fold<
T> (T initialValue, T combine(T previousValue, E element)) → T? -
Available on Obj<
Reduces a collection to a single value by iteratively combining each element of the collection with an existing valueIterable< , provided by the ObjIterableNullExt extensionE> ?> -
fold<
T> (T initialValue, T combine(T previousValue, E element)) → T -
Available on Obj<
Reduces a collection to a single value by iteratively combining each element of the collection with an existing valueIterable< , provided by the ObjIterableExt extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> ? -
Available on Obj<
Returns the lazy concatenation of this iterable andIterable< , provided by the ObjIterableNullExt extensionE> ?>other
. -
followedBy(
Iterable< E> other) → Iterable<E> -
Available on Obj<
Returns the lazy concatenation of this iterable andIterable< , provided by the ObjIterableExt extensionE> >other
. -
forEach(
void action(K key, V value)) → void -
Available on Obj<
AppliesMap< , provided by the ObjMapExt extensionK, V> >action
to each key/value pair of the map. -
forEach(
void action(E element)) → void -
Available on Obj<
InvokesIterable< , provided by the ObjIterableNullExt extensionE> ?>action
on each element of this iterable in iteration order. -
forEach(
void action(E element)) → void -
Available on Obj<
InvokesIterable< , provided by the ObjIterableExt extensionE> >action
on each element of this iterable in iteration order. -
forEach(
void action(K key, V value)) → void -
Available on Obj<
AppliesMap< , provided by the ObjMapNullExt extensionK, V> ?>action
to each key/value pair of the map. -
gcd(
BigInt other) → BigInt -
Available on Obj<
Returns the greatest common divisor of this big integer andBigInt> , provided by the ObjBigIntExt extensionother
. -
gcd(
int other) → int? -
Available on Obj<
Returns the greatest common divisor of this integer andint?> , provided by the ObjIntNullExt extensionother
. -
gcd(
BigInt other) → BigInt? -
Available on Obj<
Returns the greatest common divisor of this big integer andBigInt?> , provided by the ObjBigIntNullExt extensionother
. -
gcd(
int other) → int -
Available on Obj<
Returns the greatest common divisor of this integer andint> , provided by the ObjIntExt extensionother
. -
getRange(
int start, int end) → Iterable< E> -
Available on Obj<
Creates an Iterable that iterates over a range of elements.List< , provided by the ObjListExt extensionE> > -
getRange(
int start, int end) → Iterable< E> ? -
Available on Obj<
Creates an Iterable that iterates over a range of elements.List< , provided by the ObjListNullExt extensionE> ?> -
indexOf(
E element, [int start = 0]) → int? -
Available on Obj<
The first index ofList< , provided by the ObjListNullExt extensionE> ?>element
in this list. -
indexOf(
Pattern pattern, [int start = 0]) → int? -
Available on Obj<
Returns the position of the first match ofString?> , provided by the ObjStringNullExt extensionpattern
in this string, starting atstart
, inclusive: -
indexOf(
Pattern pattern, [int start = 0]) → int -
Available on Obj<
Returns the position of the first match ofString> , provided by the ObjStringExt extensionpattern
in this string, starting atstart
, inclusive: -
indexOf(
E element, [int start = 0]) → int -
Available on Obj<
The first index ofList< , provided by the ObjListExt extensionE> >element
in this list. -
indexWhere(
bool test(E element), [int start = 0]) → int -
Available on Obj<
The first index in the list that satisfies the providedList< , provided by the ObjListExt extensionE> >test
. -
indexWhere(
bool test(E element), [int start = 0]) → int? -
Available on Obj<
The first index in the list that satisfies the providedList< , provided by the ObjListNullExt extensionE> ?>test
. -
insert(
int index, E element) → void -
Available on Obj<
InsertsList< , provided by the ObjListExt extensionE> >element
at positionindex
in this list. -
insert(
int index, E element) → void -
Available on Signal<
InsertsList< , provided by the SignalListExt extensionE> >element
at positionindex
in this list. -
insert(
int index, E element) → void -
Available on Signal<
InsertsList< , provided by the SignalListNullExt extensionE> ?>element
at positionindex
in this list. -
insert(
int index, E element) → void -
Available on Obj<
InsertsList< , provided by the ObjListNullExt extensionE> ?>element
at positionindex
in this list. -
insertAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
Inserts all objects ofList< , provided by the SignalListExt extensionE> >iterable
at positionindex
in this list. -
insertAll(
int index, Iterable< E> iterable) → void -
Available on Obj<
Inserts all objects ofList< , provided by the ObjListExt extensionE> >iterable
at positionindex
in this list. -
insertAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
Inserts all objects ofList< , provided by the SignalListNullExt extensionE> ?>iterable
at positionindex
in this list. -
insertAll(
int index, Iterable< E> iterable) → void -
Available on Obj<
Inserts all objects ofList< , provided by the ObjListNullExt extensionE> ?>iterable
at positionindex
in this list. -
intersection(
Set< Object?> other) → Set<E> -
Available on Obj<
Creates a new set which is the intersection between this set andSet< , provided by the ObjSetExt extensionE> >other
. -
intersection(
Set< Object?> other) → Set<E> ? -
Available on Obj<
Creates a new set which is the intersection between this set andSet< , provided by the ObjSetNullExt extensionE> ?>other
. -
isAfter(
DateTime other) → bool? -
Available on Obj<
Returns true ifDateTime?> , provided by the ObjDateTimeNullExt extensionthis
occurs afterother
. -
isAfter(
DateTime other) → bool -
Available on Obj<
Returns true ifDateTime> , provided by the ObjDateTimeExt extensionthis
occurs afterother
. -
isAtSameMomentAs(
DateTime other) → bool? -
Available on Obj<
Returns true ifDateTime?> , provided by the ObjDateTimeNullExt extensionthis
occurs at the same moment asother
. -
isAtSameMomentAs(
DateTime other) → bool -
Available on Obj<
Returns true ifDateTime> , provided by the ObjDateTimeExt extensionthis
occurs at the same moment asother
. -
isBefore(
DateTime other) → bool -
Available on Obj<
Returns true ifDateTime> , provided by the ObjDateTimeExt extensionthis
occurs beforeother
. -
isBefore(
DateTime other) → bool? -
Available on Obj<
Returns true ifDateTime?> , provided by the ObjDateTimeNullExt extensionthis
occurs beforeother
. -
join(
[String separator = ""]) → String -
Available on Obj<
Converts each element to a String and concatenates the strings.Iterable< , provided by the ObjIterableExt extensionE> > -
join(
[String separator = ""]) → String? -
Available on Obj<
Converts each element to a String and concatenates the strings.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
lastIndexOf(
E element, [int? start]) → int -
Available on Obj<
The last index ofList< , provided by the ObjListExt extensionE> >element
in this list. -
lastIndexOf(
Pattern pattern, [int? start]) → int? -
Available on Obj<
The starting position of the last matchString?> , provided by the ObjStringNullExt extensionpattern
in this string. -
lastIndexOf(
Pattern pattern, [int? start]) → int -
Available on Obj<
The starting position of the last matchString> , provided by the ObjStringExt extensionpattern
in this string. -
lastIndexOf(
E element, [int? start]) → int? -
Available on Obj<
The last index ofList< , provided by the ObjListNullExt extensionE> ?>element
in this list. -
lastIndexWhere(
bool test(E element), [int? start]) → int? -
Available on Obj<
The last index in the list that satisfies the providedList< , provided by the ObjListNullExt extensionE> ?>test
. -
lastIndexWhere(
bool test(E element), [int? start]) → int -
Available on Obj<
The last index in the list that satisfies the providedList< , provided by the ObjListExt extensionE> >test
. -
lastWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the last element that satisfies the given predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
lastWhere(
bool test(E element), {E orElse()?}) → E -
Available on Obj<
Returns the last element that satisfies the given predicateIterable< , provided by the ObjIterableExt extensionE> >test
. -
lookup(
Object? object) → E? -
Available on Obj<
If an object equal toSet< , provided by the ObjSetNullExt extensionE> ?>object
is in the set, return it. -
lookup(
Object? object) → E? -
Available on Obj<
If an object equal toSet< , provided by the ObjSetExt extensionE> >object
is in the set, return it. -
map<
K2, V2> (MapEntry< K2, V2> convert(K key, V value)) → Map<K2, V2> -
Available on Obj<
Returns a new map where all entries of this map are transformed by the givenMap< , provided by the ObjMapExt extensionK, V> >convert
function. -
map<
K2, V2> (MapEntry< K2, V2> convert(K key, V value)) → Map<K2, V2> ? -
Available on Obj<
Returns a new map where all entries of this map are transformed by the givenMap< , provided by the ObjMapNullExt extensionK, V> ?>convert
function. -
map<
T> (T toElement(E e)) → Iterable< T> -
Available on Obj<
The current elements of this iterable modified byIterable< , provided by the ObjIterableExt extensionE> >toElement
. -
map<
T> (T toElement(E e)) → Iterable< T> ? -
Available on Obj<
The current elements of this iterable modified byIterable< , provided by the ObjIterableNullExt extensionE> ?>toElement
. -
modInverse(
int modulus) → int? -
Available on Obj<
Returns the modular multiplicative inverse of this integer moduloint?> , provided by the ObjIntNullExt extensionmodulus
. -
modInverse(
int modulus) → int -
Available on Obj<
Returns the modular multiplicative inverse of this integer moduloint> , provided by the ObjIntExt extensionmodulus
. -
modInverse(
BigInt modulus) → BigInt? -
Available on Obj<
Returns the modular multiplicative inverse of this big integer moduloBigInt?> , provided by the ObjBigIntNullExt extensionmodulus
. -
modInverse(
BigInt modulus) → BigInt -
Available on Obj<
Returns the modular multiplicative inverse of this big integer moduloBigInt> , provided by the ObjBigIntExt extensionmodulus
. -
modPow(
int exponent, int modulus) → int? -
Available on Obj<
Returns this integer to the power ofint?> , provided by the ObjIntNullExt extensionexponent
modulomodulus
. -
modPow(
BigInt exponent, BigInt modulus) → BigInt -
Available on Obj<
Returns this integer to the power ofBigInt> , provided by the ObjBigIntExt extensionexponent
modulomodulus
. -
modPow(
int exponent, int modulus) → int -
Available on Obj<
Returns this integer to the power ofint> , provided by the ObjIntExt extensionexponent
modulomodulus
. -
modPow(
BigInt exponent, BigInt modulus) → BigInt? -
Available on Obj<
Returns this integer to the power ofBigInt?> , provided by the ObjBigIntNullExt extensionexponent
modulomodulus
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padLeft(
int width, [String padding = ' ']) → String -
Available on Obj<
Pads this string on the left if it is shorter thanString> , provided by the ObjStringExt extensionwidth
. -
padLeft(
int width, [String padding = ' ']) → String? -
Available on Obj<
Pads this string on the left if it is shorter thanString?> , provided by the ObjStringNullExt extensionwidth
. -
padRight(
int width, [String padding = ' ']) → String? -
Available on Obj<
Pads this string on the right if it is shorter thanString?> , provided by the ObjStringNullExt extensionwidth
. -
padRight(
int width, [String padding = ' ']) → String -
Available on Obj<
Pads this string on the right if it is shorter thanString> , provided by the ObjStringExt extensionwidth
. -
pow(
int exponent) → BigInt -
Available on Obj<
ReturnsBigInt> , provided by the ObjBigIntExt extensionthis
to the power ofexponent
. -
pow(
int exponent) → BigInt? -
Available on Obj<
ReturnsBigInt?> , provided by the ObjBigIntNullExt extensionthis
to the power ofexponent
. -
putIfAbsent(
K key, V ifAbsent()) → V? -
Available on Obj<
Look up the value ofMap< , provided by the ObjMapNullExt extensionK, V> ?>key
, or add a new entry if it isn't there. -
putIfAbsent(
K key, V ifAbsent()) → V -
Available on Signal<
Look up the value ofMap< , provided by the SignalMapExt extensionK, V> >key
, or add a new entry if it isn't there. -
putIfAbsent(
K key, V ifAbsent()) → V? -
Available on Signal<
Look up the value ofMap< , provided by the SignalMapNullExt extensionK, V> ?>key
, or add a new entry if it isn't there. -
putIfAbsent(
K key, V ifAbsent()) → V -
Available on Obj<
Look up the value ofMap< , provided by the ObjMapExt extensionK, V> >key
, or add a new entry if it isn't there. -
reduce(
E combine(E value, E element)) → E? -
Available on Obj<
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
reduce(
E combine(E value, E element)) → E -
Available on Obj<
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.Iterable< , provided by the ObjIterableExt extensionE> > -
refresh(
) → void -
Forces update and notifies to listeners that it did update
inherited
-
remainder(
num other) → double -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
remainder(
num other) → num -
Available on Obj<
The remainder of the truncating division ofnum> , provided by the ObjNumExt extensionthis
byother
. -
remainder(
num other) → double? -
Available on Obj<
double?> , provided by the ObjDoubleNullExt extension -
remainder(
num other) → num? -
Available on Obj<
The remainder of the truncating division ofnum?> , provided by the ObjNumNullExt extensionthis
byother
. -
remainder(
BigInt other) → BigInt? -
Available on Obj<
Returns the remainder of the truncating division ofBigInt?> , provided by the ObjBigIntNullExt extensionthis
byother
. -
remainder(
BigInt other) → BigInt -
Available on Obj<
Returns the remainder of the truncating division ofBigInt> , provided by the ObjBigIntExt extensionthis
byother
. -
remove(
Object? key) → V? -
Available on Signal<
RemovesMap< , provided by the SignalMapNullExt extensionK, V> ?>key
and its associated value, if present, from the map. -
remove(
Object? key) → V? -
Available on Obj<
RemovesMap< , provided by the ObjMapExt extensionK, V> >key
and its associated value, if present, from the map. -
remove(
Object? valueToRemove) → bool? -
Available on Obj<
Removes the first occurrence of value from this list.List< , provided by the ObjListNullExt extensionE> ?> -
remove(
Object? valueToRemove) → bool? -
Available on Signal<
Removes the first occurrence of value from this list.List< , provided by the SignalListNullExt extensionE> ?> -
remove(
Object? key) → V? -
Available on Obj<
RemovesMap< , provided by the ObjMapNullExt extensionK, V> ?>key
and its associated value, if present, from the map. -
remove(
Object? valueToRemove) → bool -
Available on Signal<
Removes the first occurrence of value from this list.List< , provided by the SignalListExt extensionE> > -
remove(
Object? key) → V? -
Available on Signal<
RemovesMap< , provided by the SignalMapExt extensionK, V> >key
and its associated value, if present, from the map. -
remove(
Object? valueToRemove) → bool -
Available on Obj<
Removes value from the set.Set< , provided by the ObjSetExt extensionE> > -
remove(
Object? valueToRemove) → bool -
Available on Signal<
Removes value from the set.Set< , provided by the SignalSetExt extensionE> > -
remove(
Object? valueToRemove) → bool? -
Available on Obj<
Removes value from the set.Set< , provided by the ObjSetNullExt extensionE> ?> -
remove(
Object? valueToRemove) → bool -
Available on Obj<
Removes the first occurrence of value from this list.List< , provided by the ObjListExt extensionE> > -
remove(
Object? valueToRemove) → bool? -
Available on Signal<
Removes value from the set.Set< , provided by the SignalSetNullExt extensionE> ?> -
removeAll(
Iterable< Object?> elements) → void -
Available on Obj<
Removes each element ofSet< , provided by the ObjSetNullExt extensionE> ?>elements
from this set. -
removeAll(
Iterable< Object?> elements) → void -
Available on Signal<
Removes each element ofSet< , provided by the SignalSetNullExt extensionE> ?>elements
from this set. -
removeAll(
Iterable< Object?> elements) → void -
Available on Obj<
Removes each element ofSet< , provided by the ObjSetExt extensionE> >elements
from this set. -
removeAll(
Iterable< Object?> elements) → void -
Available on Signal<
Removes each element ofSet< , provided by the SignalSetExt extensionE> >elements
from this set. -
removeAt(
int index) → E? -
Available on Signal<
Removes the object at positionList< , provided by the SignalListNullExt extensionE> ?>index
from this list. -
removeAt(
int index) → E -
Available on Signal<
Removes the object at positionList< , provided by the SignalListExt extensionE> >index
from this list. -
removeAt(
int index) → E? -
Available on Obj<
Removes the object at positionList< , provided by the ObjListNullExt extensionE> ?>index
from this list. -
removeAt(
int index) → E -
Available on Obj<
Removes the object at positionList< , provided by the ObjListExt extensionE> >index
from this list. -
removeLast(
) → E? -
Available on Signal<
Removes and returns the last object in this list.List< , provided by the SignalListNullExt extensionE> ?> -
removeLast(
) → E -
Available on Signal<
Removes and returns the last object in this list.List< , provided by the SignalListExt extensionE> > -
removeLast(
) → E? -
Available on Obj<
Removes and returns the last object in this list.List< , provided by the ObjListNullExt extensionE> ?> -
removeLast(
) → E -
Available on Obj<
Removes and returns the last object in this list.List< , provided by the ObjListExt extensionE> > -
removeRange(
int start, int end) → void -
Available on Obj<
Removes a range of elements from the list.List< , provided by the ObjListNullExt extensionE> ?> -
removeRange(
int start, int end) → void -
Available on Signal<
Removes a range of elements from the list.List< , provided by the SignalListNullExt extensionE> ?> -
removeRange(
int start, int end) → void -
Available on Signal<
Removes a range of elements from the list.List< , provided by the SignalListExt extensionE> > -
removeRange(
int start, int end) → void -
Available on Obj<
Removes a range of elements from the list.List< , provided by the ObjListExt extensionE> > -
removeWhere(
bool test(E element)) → void -
Available on Obj<
Removes all objects from this list that satisfyList< , provided by the ObjListNullExt extensionE> ?>test
. -
removeWhere(
bool test(E element)) → void -
Available on Obj<
Removes all elements of this set that satisfySet< , provided by the ObjSetNullExt extensionE> ?>test
. -
removeWhere(
bool test(E element)) → void -
Available on Signal<
Removes all objects from this list that satisfyList< , provided by the SignalListExt extensionE> >test
. -
removeWhere(
bool test(E element)) → void -
Available on Obj<
Removes all elements of this set that satisfySet< , provided by the ObjSetExt extensionE> >test
. -
removeWhere(
bool test(E element)) → void -
Available on Obj<
Removes all objects from this list that satisfyList< , provided by the ObjListExt extensionE> >test
. -
removeWhere(
bool test(K key, V value)) → void -
Available on Signal<
Removes all entries of this map that satisfy the givenMap< , provided by the SignalMapExt extensionK, V> >test
. -
removeWhere(
bool test(K key, V value)) → void -
Available on Obj<
Removes all entries of this map that satisfy the givenMap< , provided by the ObjMapExt extensionK, V> >test
. -
removeWhere(
bool test(E element)) → void -
Available on Signal<
Removes all objects from this list that satisfyList< , provided by the SignalListNullExt extensionE> ?>test
. -
removeWhere(
bool test(E element)) → void -
Available on Signal<
Removes all elements of this set that satisfySet< , provided by the SignalSetExt extensionE> >test
. -
removeWhere(
bool test(E element)) → void -
Available on Signal<
Removes all elements of this set that satisfySet< , provided by the SignalSetNullExt extensionE> ?>test
. -
removeWhere(
bool test(K key, V value)) → void -
Available on Signal<
Removes all entries of this map that satisfy the givenMap< , provided by the SignalMapNullExt extensionK, V> ?>test
. -
removeWhere(
bool test(K key, V value)) → void -
Available on Obj<
Removes all entries of this map that satisfy the givenMap< , provided by the ObjMapNullExt extensionK, V> ?>test
. -
replaceAll(
Pattern from, String replace) → String? -
Available on Obj<
Replaces all substrings that matchString?> , provided by the ObjStringNullExt extensionfrom
withreplace
. -
replaceAll(
Pattern from, String replace) → String -
Available on Obj<
Replaces all substrings that matchString> , provided by the ObjStringExt extensionfrom
withreplace
. -
replaceAllMapped(
Pattern from, String replace(Match match)) → String -
Available on Obj<
Replace all substrings that matchString> , provided by the ObjStringExt extensionfrom
by a computed string. -
replaceAllMapped(
Pattern from, String replace(Match match)) → String? -
Available on Obj<
Replace all substrings that matchString?> , provided by the ObjStringNullExt extensionfrom
by a computed string. -
replaceFirst(
Pattern from, String to, [int startIndex = 0]) → String -
Available on Obj<
Creates a new string with the first occurrence ofString> , provided by the ObjStringExt extensionfrom
replaced byto
. -
replaceFirst(
Pattern from, String to, [int startIndex = 0]) → String? -
Available on Obj<
Creates a new string with the first occurrence ofString?> , provided by the ObjStringNullExt extensionfrom
replaced byto
. -
replaceFirstMapped(
Pattern from, String replace(Match match), [int startIndex = 0]) → String? -
Available on Obj<
Replace the first occurrence ofString?> , provided by the ObjStringNullExt extensionfrom
in this string. -
replaceFirstMapped(
Pattern from, String replace(Match match), [int startIndex = 0]) → String -
Available on Obj<
Replace the first occurrence ofString> , provided by the ObjStringExt extensionfrom
in this string. -
replaceRange(
int start, int? end, String replacement) → String -
Available on Obj<
Replaces the substring fromString> , provided by the ObjStringExt extensionstart
toend
withreplacement
. -
replaceRange(
int start, int end, Iterable< E> replacements) → void -
Available on Signal<
Replaces a range of elements with the elements ofList< , provided by the SignalListExt extensionE> >replacements
. -
replaceRange(
int start, int end, Iterable< E> replacements) → void -
Available on Obj<
Replaces a range of elements with the elements ofList< , provided by the ObjListNullExt extensionE> ?>replacements
. -
replaceRange(
int start, int end, Iterable< E> replacements) → void -
Available on Obj<
Replaces a range of elements with the elements ofList< , provided by the ObjListExt extensionE> >replacements
. -
replaceRange(
int start, int? end, String replacement) → String? -
Available on Obj<
Replaces the substring fromString?> , provided by the ObjStringNullExt extensionstart
toend
withreplacement
. -
replaceRange(
int start, int end, Iterable< E> replacements) → void -
Available on Signal<
Replaces a range of elements with the elements ofList< , provided by the SignalListNullExt extensionE> ?>replacements
. -
retainAll(
Iterable< Object?> elements) → void -
Available on Signal<
Removes all elements of this set that are not elements inSet< , provided by the SignalSetNullExt extensionE> ?>elements
. -
retainAll(
Iterable< Object?> elements) → void -
Available on Obj<
Removes all elements of this set that are not elements inSet< , provided by the ObjSetExt extensionE> >elements
. -
retainAll(
Iterable< Object?> elements) → void -
Available on Signal<
Removes all elements of this set that are not elements inSet< , provided by the SignalSetExt extensionE> >elements
. -
retainAll(
Iterable< Object?> elements) → void -
Available on Obj<
Removes all elements of this set that are not elements inSet< , provided by the ObjSetNullExt extensionE> ?>elements
. -
retainWhere(
bool test(E element)) → void -
Available on Obj<
Removes all objects from this list that fail to satisfyList< , provided by the ObjListExt extensionE> >test
. -
retainWhere(
bool test(E element)) → void -
Available on Obj<
Removes all objects from this list that fail to satisfyList< , provided by the ObjListNullExt extensionE> ?>test
. -
retainWhere(
bool test(E element)) → void -
Available on Signal<
Removes all elements of this set that fail to satisfySet< , provided by the SignalSetExt extensionE> >test
. -
retainWhere(
bool test(E element)) → void -
Available on Signal<
Removes all objects from this list that fail to satisfyList< , provided by the SignalListExt extensionE> >test
. -
retainWhere(
bool test(E element)) → void -
Available on Obj<
Removes all elements of this set that fail to satisfySet< , provided by the ObjSetExt extensionE> >test
. -
retainWhere(
bool test(E element)) → void -
Available on Obj<
Removes all elements of this set that fail to satisfySet< , provided by the ObjSetNullExt extensionE> ?>test
. -
retainWhere(
bool test(E element)) → void -
Available on Signal<
Removes all elements of this set that fail to satisfySet< , provided by the SignalSetNullExt extensionE> ?>test
. -
retainWhere(
bool test(E element)) → void -
Available on Signal<
Removes all objects from this list that fail to satisfyList< , provided by the SignalListNullExt extensionE> ?>test
. -
round(
) → int -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis
. -
round(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
round(
) → int? -
Available on Obj<
The integer closest to this number.num?> , provided by the ObjNumNullExt extension -
round(
) → int? -
Available on Obj<
Returns the integer closest to this number.double?> , provided by the ObjDoubleNullExt extension -
round(
) → int - The integer closest to this number.
-
round(
) → int -
Available on Obj<
Returns the integer closest to this number.double> , provided by the ObjDoubleExt extension -
roundToDouble(
) → double - The double integer value closest to this value.
-
roundToDouble(
) → double -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis.toDouble()
. -
roundToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
roundToDouble(
) → double -
Available on Obj<
Returns the integer double value closest todouble> , provided by the ObjDoubleExt extensionthis
. -
roundToDouble(
) → double? -
Available on Obj<
The double integer value closest to this value.num?> , provided by the ObjNumNullExt extension -
roundToDouble(
) → double? -
Available on Obj<
Returns the integer double value closest todouble?> , provided by the ObjDoubleNullExt extensionthis
. -
setAll(
int index, Iterable< E> iterable) → void -
Available on Obj<
Overwrites elements with the objects ofList< , provided by the ObjListNullExt extensionE> ?>iterable
. -
setAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
Overwrites elements with the objects ofList< , provided by the SignalListExt extensionE> >iterable
. -
setAll(
int index, Iterable< E> iterable) → void -
Available on Signal<
Overwrites elements with the objects ofList< , provided by the SignalListNullExt extensionE> ?>iterable
. -
setAll(
int index, Iterable< E> iterable) → void -
Available on Obj<
Overwrites elements with the objects ofList< , provided by the ObjListExt extensionE> >iterable
. -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
Available on Obj<
Writes some elements ofList< , provided by the ObjListExt extensionE> >iterable
into a range of this list. -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
Available on Signal<
Writes some elements ofList< , provided by the SignalListNullExt extensionE> ?>iterable
into a range of this list. -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
Available on Obj<
Writes some elements ofList< , provided by the ObjListNullExt extensionE> ?>iterable
into a range of this list. -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
Available on Signal<
Writes some elements ofList< , provided by the SignalListExt extensionE> >iterable
into a range of this list. -
shuffle(
[Random? random]) → void -
Available on Obj<
Shuffles the elements of this list randomly.List< , provided by the ObjListExt extensionE> > -
shuffle(
[Random? random]) → void -
Available on Signal<
Shuffles the elements of this list randomly.List< , provided by the SignalListExt extensionE> > -
shuffle(
[Random? random]) → void -
Available on Obj<
Shuffles the elements of this list randomly.List< , provided by the ObjListNullExt extensionE> ?> -
shuffle(
[Random? random]) → void -
Available on Signal<
Shuffles the elements of this list randomly.List< , provided by the SignalListNullExt extensionE> ?> -
singleWhere(
bool test(E element), {E orElse()?}) → E -
Available on Obj<
Returns the single element that satisfiesIterable< , provided by the ObjIterableExt extensionE> >test
. -
singleWhere(
bool test(E element), {E orElse()?}) → E? -
Available on Obj<
Returns the single element that satisfiesIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
skip(
int count) → Iterable< E> ? -
Available on Obj<
Returns an Iterable that provides all but the firstIterable< , provided by the ObjIterableNullExt extensionE> ?>count
elements. -
skip(
int count) → Iterable< E> -
Available on Obj<
Returns an Iterable that provides all but the firstIterable< , provided by the ObjIterableExt extensionE> >count
elements. -
skipWhile(
bool test(E value)) → Iterable< E> -
Available on Obj<
Returns anIterable< , provided by the ObjIterableExt extensionE> >Iterable
that skips leading elements whiletest
is satisfied. -
skipWhile(
bool test(E value)) → Iterable< E> ? -
Available on Obj<
Returns anIterable< , provided by the ObjIterableNullExt extensionE> ?>Iterable
that skips leading elements whiletest
is satisfied. -
sort(
[int compare(E a, E b)?]) → void -
Available on Obj<
Sorts this list according to the order specified by theList< , provided by the ObjListExt extensionE> >compare
function. -
sort(
[int compare(E a, E b)?]) → void -
Available on Signal<
Sorts this list according to the order specified by theList< , provided by the SignalListExt extensionE> >compare
function. -
sort(
[int compare(E a, E b)?]) → void -
Available on Signal<
Sorts this list according to the order specified by theList< , provided by the SignalListNullExt extensionE> ?>compare
function. -
sort(
[int compare(E a, E b)?]) → void -
Available on Obj<
Sorts this list according to the order specified by theList< , provided by the ObjListNullExt extensionE> ?>compare
function. -
split(
Pattern pattern) → List< String> ? -
Available on Obj<
Splits the string at matches ofString?> , provided by the ObjStringNullExt extensionpattern
and returns a list of substrings. -
split(
Pattern pattern) → List< String> -
Available on Obj<
Splits the string at matches ofString> , provided by the ObjStringExt extensionpattern
and returns a list of substrings. -
splitMapJoin(
Pattern pattern, {String onMatch(Match)?, String onNonMatch(String)?}) → String? -
Available on Obj<
Splits the string, converts its parts, and combines them into a new string.String?> , provided by the ObjStringNullExt extension -
splitMapJoin(
Pattern pattern, {String onMatch(Match)?, String onNonMatch(String)?}) → String -
Available on Obj<
Splits the string, converts its parts, and combines them into a new string.String> , provided by the ObjStringExt extension -
startsWith(
Pattern pattern, [int index = 0]) → bool -
Available on Obj<
Whether this string starts with a match ofString> , provided by the ObjStringExt extensionpattern
. -
startsWith(
Pattern pattern, [int index = 0]) → bool? -
Available on Obj<
Whether this string starts with a match ofString?> , provided by the ObjStringNullExt extensionpattern
. -
sublist(
int start, [int? end]) → List< E> -
Available on Obj<
Returns a new list containing the elements betweenList< , provided by the ObjListExt extensionE> >start
andend
. -
sublist(
int start, [int? end]) → List< E> ? -
Available on Obj<
Returns a new list containing the elements betweenList< , provided by the ObjListNullExt extensionE> ?>start
andend
. -
substring(
int start, [int? end]) → String -
Available on Obj<
The substring of this string fromString> , provided by the ObjStringExt extensionstart
, inclusive, toend
, exclusive. -
substring(
int start, [int? end]) → String? -
Available on Obj<
The substring of this string fromString?> , provided by the ObjStringNullExt extensionstart
, inclusive, toend
, exclusive. -
subtract(
Duration duration) → DateTime? -
Available on Obj<
Returns a new DateTime instance withDateTime?> , provided by the ObjDateTimeNullExt extensionduration
subtracted fromthis
. -
subtract(
Duration duration) → DateTime -
Available on Obj<
Returns a new DateTime instance withDateTime> , provided by the ObjDateTimeExt extensionduration
subtracted fromthis
. -
take(
int count) → Iterable< E> ? -
Available on Obj<
Returns a lazy iterable of theIterable< , provided by the ObjIterableNullExt extensionE> ?>count
first elements of this iterable. -
take(
int count) → Iterable< E> -
Available on Obj<
Returns a lazy iterable of theIterable< , provided by the ObjIterableExt extensionE> >count
first elements of this iterable. -
takeWhile(
bool test(E value)) → Iterable< E> -
Available on Obj<
Returns a lazy iterable of the leading elements satisfyingIterable< , provided by the ObjIterableExt extensionE> >test
. -
takeWhile(
bool test(E value)) → Iterable< E> ? -
Available on Obj<
Returns a lazy iterable of the leading elements satisfyingIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
toDouble(
) → double? -
Available on Obj<
Returns this BigInt as a double.BigInt?> , provided by the ObjBigIntNullExt extension -
toDouble(
) → double? -
Available on Obj<
This number as a double.num?> , provided by the ObjNumNullExt extension -
toDouble(
) → double -
Available on Obj<
Returns this BigInt as a double.BigInt> , provided by the ObjBigIntExt extension -
toDouble(
) → double -
Available on Obj<
This number as a double.num> , provided by the ObjNumExt extension -
toInt(
) → int -
Available on Obj<
Truncates this num to an integer and returns the result as an int.num> , provided by the ObjNumExt extension -
toInt(
) → int -
Available on Obj<
Returns this BigInt as an int.BigInt> , provided by the ObjBigIntExt extension -
toInt(
) → int? -
Available on Obj<
Truncates this num to an integer and returns the result as an int.num?> , provided by the ObjNumNullExt extension -
toInt(
) → int? -
Available on Obj<
Returns this BigInt as an int.BigInt?> , provided by the ObjBigIntNullExt extension -
toIso8601String(
) → String -
Available on Obj<
Returns an ISO-8601 full-precision extended format representation.DateTime> , provided by the ObjDateTimeExt extension -
toIso8601String(
) → String? -
Available on Obj<
Returns an ISO-8601 full-precision extended format representation.DateTime?> , provided by the ObjDateTimeNullExt extension -
toList(
{bool growable = true}) → List< E> -
Available on Obj<
Creates a List containing the elements of this Iterable.Iterable< , provided by the ObjIterableExt extensionE> > -
toList(
{bool growable = true}) → List< E> ? -
Available on Obj<
Creates a List containing the elements of this Iterable.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
toLocal(
) → DateTime -
Available on Obj<
Returns this DateTime value in the local time zone.DateTime> , provided by the ObjDateTimeExt extension -
toLocal(
) → DateTime? -
Available on Obj<
Returns this DateTime value in the local time zone.DateTime?> , provided by the ObjDateTimeNullExt extension -
toLowerCase(
) → String? -
Available on Obj<
Converts all characters in this string to lower case.String?> , provided by the ObjStringNullExt extension -
toLowerCase(
) → String -
Available on Obj<
Converts all characters in this string to lower case.String> , provided by the ObjStringExt extension -
toRadixString(
int radix) → String? -
Available on Obj<
Convertsint?> , provided by the ObjIntNullExt extensionthis
to a string representation in the givenradix
. -
toRadixString(
int radix) → String -
Available on Obj<
ConvertsBigInt> , provided by the ObjBigIntExt extensionthis
to a string representation in the givenradix
. -
toRadixString(
int radix) → String -
Available on Obj<
Convertsint> , provided by the ObjIntExt extensionthis
to a string representation in the givenradix
. -
toRadixString(
int radix) → String? -
Available on Obj<
ConvertsBigInt?> , provided by the ObjBigIntNullExt extensionthis
to a string representation in the givenradix
. -
toSet(
) → Set< E> ? -
Available on Obj<
Creates a Set containing the same elements as this iterable.Iterable< , provided by the ObjIterableNullExt extensionE> ?> -
toSet(
) → Set< E> -
Available on Obj<
Creates a Set with the same elements and behavior as thisSet< , provided by the ObjSetExt extensionE> >Set
. -
toSet(
) → Set< E> -
Available on Obj<
Creates a Set containing the same elements as this iterable.Iterable< , provided by the ObjIterableExt extensionE> > -
toSet(
) → Set< E> ? -
Available on Obj<
Creates a Set with the same elements and behavior as thisSet< , provided by the ObjSetNullExt extensionE> ?>Set
. -
toSigned(
int width) → int -
Available on Obj<
Returns the least significantint> , provided by the ObjIntExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toSigned(
int width) → BigInt -
Available on Obj<
Returns the least significantBigInt> , provided by the ObjBigIntExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toSigned(
int width) → int? -
Available on Obj<
Returns the least significantint?> , provided by the ObjIntNullExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toSigned(
int width) → BigInt? -
Available on Obj<
Returns the least significantBigInt?> , provided by the ObjBigIntNullExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toString(
) → String -
A string representation of this object.
inherited
-
toStringAsExponential(
[int? fractionDigits]) → String? -
Available on Obj<
An exponential string-representation of this number.num?> , provided by the ObjNumNullExt extension -
toStringAsExponential(
[int? fractionDigits]) → String - An exponential string-representation of this number.
-
toStringAsFixed(
int fractionDigits) → String - A decimal-point string-representation of this number.
-
toStringAsFixed(
int fractionDigits) → String? -
Available on Obj<
A decimal-point string-representation of this number.num?> , provided by the ObjNumNullExt extension -
toStringAsPrecision(
int precision) → String? -
Available on Obj<
A string representation withnum?> , provided by the ObjNumNullExt extensionprecision
significant digits. -
toStringAsPrecision(
int precision) → String -
Available on Obj<
A string representation withnum> , provided by the ObjNumExt extensionprecision
significant digits. -
toUnsigned(
int width) → BigInt? -
Available on Obj<
Returns the least significantBigInt?> , provided by the ObjBigIntNullExt extensionwidth
bits of this big integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
toUnsigned(
int width) → int? -
Available on Obj<
Returns the least significantint?> , provided by the ObjIntNullExt extensionwidth
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
toUnsigned(
int width) → int -
Available on Obj<
Returns the least significantint> , provided by the ObjIntExt extensionwidth
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
toUnsigned(
int width) → BigInt -
Available on Obj<
Returns the least significantBigInt> , provided by the ObjBigIntExt extensionwidth
bits of this big integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
toUpperCase(
) → String -
Available on Obj<
Converts all characters in this string to upper case.String> , provided by the ObjStringExt extension -
toUpperCase(
) → String? -
Available on Obj<
Converts all characters in this string to upper case.String?> , provided by the ObjStringNullExt extension -
toUtc(
) → DateTime -
Available on Obj<
Returns this DateTime value in the UTC time zone.DateTime> , provided by the ObjDateTimeExt extension -
toUtc(
) → DateTime? -
Available on Obj<
Returns this DateTime value in the UTC time zone.DateTime?> , provided by the ObjDateTimeNullExt extension -
trim(
) → String? -
Available on Obj<
The string without any leading and trailing whitespace.String?> , provided by the ObjStringNullExt extension -
trim(
) → String -
Available on Obj<
The string without any leading and trailing whitespace.String> , provided by the ObjStringExt extension -
trimLeft(
) → String? -
Available on Obj<
The string without any leading whitespace.String?> , provided by the ObjStringNullExt extension -
trimLeft(
) → String -
Available on Obj<
The string without any leading whitespace.String> , provided by the ObjStringExt extension -
trimRight(
) → String -
Available on Obj<
The string without any trailing whitespace.String> , provided by the ObjStringExt extension -
trimRight(
) → String? -
Available on Obj<
The string without any trailing whitespace.String?> , provided by the ObjStringNullExt extension -
truncate(
) → int -
Available on Obj<
Returns the integer obtained by discarding any fractional part of this number.double> , provided by the ObjDoubleExt extension -
truncate(
) → int? -
Available on Obj<
The integer obtained by discarding any fractional digits fromnum?> , provided by the ObjNumNullExt extensionthis
. -
truncate(
) → int -
Available on Obj<
The integer obtained by discarding any fractional digits fromnum> , provided by the ObjNumExt extensionthis
. -
truncate(
) → int? -
Available on Obj<
Returns the integer obtained by discarding any fractional part of this number.double?> , provided by the ObjDoubleNullExt extension -
truncate(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
truncate(
) → int -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis
. -
truncateToDouble(
) → double -
Available on Obj<
Returns the integer double value obtained by discarding any fractional digits fromdouble> , provided by the ObjDoubleExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Obj<
Returns the double integer value obtained by discarding any fractional digits from the double value ofnum?> , provided by the ObjNumNullExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
truncateToDouble(
) → double -
Available on Obj<
Returnsint> , provided by the ObjIntExt extensionthis.toDouble()
. -
truncateToDouble(
) → double -
Available on Obj<
Returns the double integer value obtained by discarding any fractional digits from the double value ofnum> , provided by the ObjNumExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Obj<
Returns the integer double value obtained by discarding any fractional digits fromdouble?> , provided by the ObjDoubleNullExt extensionthis
. -
union(
Set< E> other) → Set<E> ? -
Available on Obj<
Creates a new set which contains all the elements of this set andSet< , provided by the ObjSetNullExt extensionE> ?>other
. -
union(
Set< E> other) → Set<E> -
Available on Obj<
Creates a new set which contains all the elements of this set andSet< , provided by the ObjSetExt extensionE> >other
. -
update(
covariant void fnUpdate(T value)) → void -
Executes
fnUpdate
, and notify the listeners about to update.override -
updateAll(
V update(K key, V value)) → void -
Available on Obj<
Updates all values.Map< , provided by the ObjMapNullExt extensionK, V> ?> -
updateAll(
V fnUpdate(K key, V value)) → void -
Available on Signal<
Updates all values.Map< , provided by the SignalMapExt extensionK, V> > -
updateAll(
V update(K key, V value)) → void -
Available on Obj<
Updates all values.Map< , provided by the ObjMapExt extensionK, V> > -
updateAll(
V fnUpdate(K key, V value)) → void -
Available on Signal<
Updates all values.Map< , provided by the SignalMapNullExt extensionK, V> ?> -
updateAsync(
covariant void fnUpdate(dynamic value)) → Future< void> -
Executes
fnUpdate
, and notify the listeners about to update as async way.override -
updateMap(
K key, V update(V value), {V ifAbsent()?}) → V -
Available on Obj<
Updates the value for the providedMap< , provided by the ObjMapExt extensionK, V> >key
. -
updateMap(
K key, V fnUpdate(V value), {V ifAbsent()?}) → V -
Available on Signal<
Updates the value for the providedMap< , provided by the SignalMapExt extensionK, V> >key
. -
updateMap(
K key, V fnUpdate(V value), {V ifAbsent()?}) → V? -
Available on Signal<
Updates the value for the providedMap< , provided by the SignalMapNullExt extensionK, V> ?>key
. -
updateMap(
K key, V update(V value), {V ifAbsent()?}) → V? -
Available on Obj<
Updates the value for the providedMap< , provided by the ObjMapNullExt extensionK, V> ?>key
. -
where(
bool test(E element)) → Iterable< E> ? -
Available on Obj<
Returns a new lazy Iterable with all elements that satisfy the predicateIterable< , provided by the ObjIterableNullExt extensionE> ?>test
. -
where(
bool test(E element)) → Iterable< E> -
Available on Obj<
Returns a new lazy Iterable with all elements that satisfy the predicateIterable< , provided by the ObjIterableExt extensionE> >test
. -
whereType<
T> () → Iterable< T> -
Available on Obj<
Returns a new lazy Iterable with all elements that have typeIterable< , provided by the ObjIterableExt extensionE> >T
. -
whereType<
T> () → Iterable< T> ? -
Available on Obj<
Returns a new lazy Iterable with all elements that have typeIterable< , provided by the ObjIterableNullExt extensionE> ?>T
.
Operators
-
operator %(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Euclidean modulo operator.BigInt> , provided by the ObjBigIntExt extension -
operator %(
Obj< num> other) → Obj<num> -
Available on Obj<
Euclidean modulo of this number bynum> , provided by the ObjNumExt extensionother
. -
operator %(
Obj< num> other) → Obj<double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator &(
Obj< int> other) → Obj<int> - Bit-wise and operator.
-
operator &(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise and operator.BigInt> , provided by the ObjBigIntExt extension -
operator &(
Obj< bool> other) → Obj<bool> -
Available on Obj<
The logical conjunction ("and") of this andbool> , provided by the ObjBoolExt extensionother
. -
operator *(
int times) → String -
Available on Obj<
Creates a new string by concatenating this string with itself a number of times.String> , provided by the ObjStringExt extension -
operator *(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
MultipliesBigInt> , provided by the ObjBigIntExt extensionother
by this big integer. -
operator *(
Obj< num> other) → Obj<num> -
Available on Obj<
Multiplies this number bynum> , provided by the ObjNumExt extensionother
. -
operator *(
Obj< num> other) → Obj<double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator +(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
AddsBigInt> , provided by the ObjBigIntExt extensionother
to this big integer. -
operator +(
Obj< String> other) → String -
Available on Obj<
Creates a new string by concatenating this string withString> , provided by the ObjStringExt extensionother
. -
operator +(
Obj< num> other) → Obj<num> -
Available on Obj<
Addsnum> , provided by the ObjNumExt extensionother
to this number. -
operator +(
Obj< num> other) → Obj<double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator +(
Obj< List< other) → Obj<E> >List< E> > -
Available on Obj<
Returns the concatenation of this list andList< , provided by the ObjListExt extensionE> >other
. -
operator -(
Obj< num> other) → Obj<double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator -(
Obj< num> other) → Obj<num> -
Available on Obj<
Subtractsnum> , provided by the ObjNumExt extensionother
from this number. -
operator -(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
SubtractsBigInt> , provided by the ObjBigIntExt extensionother
from this big integer. -
operator /(
Obj< num> other) → Obj<double> -
Available on Obj<
Divides this number bynum> , provided by the ObjNumExt extensionother
. -
operator /(
Obj< BigInt> other) → Obj<double> -
Available on Obj<
Double division operator.BigInt> , provided by the ObjBigIntExt extension -
operator /(
Obj< num> other) → Obj<double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator <(
Obj< num> other) → bool -
Available on Obj<
Whether this number is numerically smaller thannum> , provided by the ObjNumExt extensionother
. -
operator <(
Obj< BigInt> other) → bool -
Available on Obj<
Whether this big integer is numerically smaller thanBigInt> , provided by the ObjBigIntExt extensionother
. -
operator <<(
Obj< int> shiftAmount) → Obj<BigInt> -
Available on Obj<
Shift the bits of this integer to the left byBigInt> , provided by the ObjBigIntExt extensionshiftAmount
. -
operator <<(
Obj< int> shiftAmount) → Obj<int> -
Available on Obj<
Shift the bits of this integer to the left byint> , provided by the ObjIntExt extensionshiftAmount
. -
operator <=(
Obj< num> other) → bool -
Available on Obj<
Whether this number is numerically smaller than or equal tonum> , provided by the ObjNumExt extensionother
. -
operator <=(
Obj< BigInt> other) → bool -
Available on Obj<
WhetherBigInt> , provided by the ObjBigIntExt extensionother
is numerically greater than this big integer. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Obj< BigInt> other) → bool -
Available on Obj<
Whether this big integer is numerically greater thanBigInt> , provided by the ObjBigIntExt extensionother
. -
operator >(
Obj< num> other) → bool -
Available on Obj<
Whether this number is numerically greater thannum> , provided by the ObjNumExt extensionother
. -
operator >=(
Obj< num> other) → bool -
Available on Obj<
Whether this number is numerically greater than or equal tonum> , provided by the ObjNumExt extensionother
. -
operator >=(
Obj< BigInt> other) → bool -
Available on Obj<
WhetherBigInt> , provided by the ObjBigIntExt extensionother
is numerically smaller than this big integer. -
operator >>(
Obj< int> shiftAmount) → Obj<int> -
Available on Obj<
Shift the bits of this integer to the right byint> , provided by the ObjIntExt extensionshiftAmount
. -
operator >>(
Obj< int> shiftAmount) → Obj<BigInt> -
Available on Obj<
Shift the bits of this integer to the right byBigInt> , provided by the ObjBigIntExt extensionshiftAmount
. -
operator >>>(
Obj< int> shiftAmount) → Obj<int> -
Available on Obj<
Bitwise unsigned right shift byint> , provided by the ObjIntExt extensionshiftAmount
bits. -
operator [](
int index) → String? -
Available on Obj<
The character (as a single-code-unit String) at the givenString?> , provided by the ObjStringNullExt extensionindex
. -
operator [](
int index) → E -
Available on Obj<
The object at the givenList< , provided by the ObjListExt extensionE> >index
in the list. -
operator [](
int index) → E? -
Available on Obj<
The object at the givenList< , provided by the ObjListNullExt extensionE> ?>index
in the list. -
operator [](
Object? key) → V? -
Available on Obj<
The value for the givenMap< , provided by the ObjMapExt extensionK, V> >key
, ornull
ifkey
is not in the map. -
operator [](
Object? key) → V? -
Available on Obj<
The value for the givenMap< , provided by the ObjMapNullExt extensionK, V> ?>key
, ornull
ifkey
is not in the map. -
operator [](
int index) → E -
Available on Signal<
The object at the givenList< , provided by the SignalListExt extensionE> >index
in the list. -
operator [](
int index) → String -
Available on Obj<
The character (as a single-code-unit String) at the givenString> , provided by the ObjStringExt extensionindex
. -
operator []=(
int index, E valueToSet) → void -
Available on Obj<
Sets the value at the givenList< , provided by the ObjListExt extensionE> >index
in the list to value. -
operator []=(
int index, E valueToSet) → void -
Available on Signal<
Sets the value at the givenList< , provided by the SignalListNullExt extensionE> ?>index
in the list to value. -
operator []=(
int index, E valueToSet) → void -
Available on Obj<
Sets the value at the givenList< , provided by the ObjListNullExt extensionE> ?>index
in the list to value. -
operator []=(
K key, V valueToSet) → void -
Available on Obj<
Associates theMap< , provided by the ObjMapNullExt extensionK, V> ?>key
with the given value. -
operator []=(
int index, E valueToSet) → void -
Available on Signal<
Sets the value at the givenList< , provided by the SignalListExt extensionE> >index
in the list to value. -
operator []=(
K key, V valueToSet) → void -
Available on Signal<
Associates theMap< , provided by the SignalMapNullExt extensionK, V> ?>key
with the given value. -
operator []=(
K key, V valueToSet) → void -
Available on Obj<
Associates theMap< , provided by the ObjMapExt extensionK, V> >key
with the given value. -
operator []=(
K key, V valueToSet) → void -
Available on Signal<
Associates theMap< , provided by the SignalMapExt extensionK, V> >key
with the given value. -
operator ^(
Obj< int> other) → Obj<int> - Bit-wise exclusive-or operator.
-
operator ^(
Obj< bool> other) → Obj<bool> -
Available on Obj<
The logical exclusive disjunction ("exclusive or") of this andbool> , provided by the ObjBoolExt extensionother
. -
operator ^(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise exclusive-or operator.BigInt> , provided by the ObjBigIntExt extension -
operator unary-(
) → Obj< BigInt> -
Available on Obj<
Return the negative value of this integer.BigInt> , provided by the ObjBigIntExt extension -
operator unary-(
) → Obj< num> - The negation of this value.
-
operator unary-(
) → Obj< double> -
Available on Obj<
double> , provided by the ObjDoubleExt extension -
operator unary-(
) → Obj< int> - Return the negative value of this integer.
-
operator |(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Bit-wise or operator.BigInt> , provided by the ObjBigIntExt extension -
operator |(
Obj< bool> other) → Obj<bool> -
Available on Obj<
The logical disjunction ("inclusive or") of this andbool> , provided by the ObjBoolExt extensionother
. -
operator |(
Obj< int> other) → Obj<int> - Bit-wise or operator.
-
operator ~(
) → Obj< BigInt> -
Available on Obj<
The bit-wise negate operator.BigInt> , provided by the ObjBigIntExt extension -
operator ~(
) → Obj< int> - The bit-wise negate operator.
-
operator ~/(
Obj< BigInt> other) → Obj<BigInt> -
Available on Obj<
Truncating integer division operator.BigInt> , provided by the ObjBigIntExt extension -
operator ~/(
Obj< num> other) → Obj<int> - Truncating division operator.
-
operator ~/(
Obj< num> other) → Obj<int> -
Available on Obj<
double> , provided by the ObjDoubleExt extension