MutableArrayInterface class Null safety Document
Defines a set of methods for getting and setting array data.
- Implemented types
- Implementers
Constructors
Properties
Methods
-
addArray(
Array? value) → void - Adds an Array at the end of this array.
-
addBlob(
Blob? value) → void - Adds a Blob at the end of this array.
-
addBoolean(
bool value) → void - Adds a bool at the end of this array.
-
addDate(
DateTime? value) → void - Adds a DateTime at the end of this array.
-
addDictionary(
Dictionary? value) → void - Adds a Dictionary at the end of this array.
-
addFloat(
double value) → void - Adds a floating point number at the end of this array.
-
addInteger(
int value) → void - Adds a integer number at the end of this array.
-
addNumber(
num? value) → void - Adds a num at the end of this array.
-
addString(
String? value) → void - Adds a String at the end of this array.
-
addValue(
Object? value) → void -
Adds a
value
at the end of this array. [...] -
array(
int index) → MutableArray? -
Returns the element at the given
index
as a MutableArray. [...]override -
blob(
int index) → Blob? -
Returns the element at the given
index
as a Blob. [...]inherited -
boolean(
int index) → bool -
Returns the element at the given
index
as a bool. [...]inherited -
date(
int index) → DateTime? -
Returns the element at the given
index
as a DateTime. [...]inherited -
dictionary(
int index) → MutableDictionary? -
Returns the element at the given
index
as a MutableDictionary. [...]override -
float(
int index) → double -
Returns the element at the given
index
as an floating point number. [...]inherited -
insertArray(
Array? value, {required int at}) → void -
Inserts an Array
at
the given index. [...] -
insertBlob(
Blob? value, {required int at}) → void -
Inserts a Blob
at
the given index. [...] -
insertBoolean(
bool value, {required int at}) → void -
Inserts a bool
at
the given index. [...] -
insertDate(
DateTime? value, {required int at}) → void -
Inserts a DateTime
at
the given index. [...] -
insertDictionary(
Dictionary? value, {required int at}) → void -
Inserts a Dictionary
at
the given index. [...] -
insertFloat(
double value, {required int at}) → void -
Inserts a floating point number
at
the given index. [...] -
insertInteger(
int value, {required int at}) → void -
Inserts an integer number
at
the given index. [...] -
insertNumber(
num? value, {required int at}) → void -
Inserts a num
at
the given index. [...] -
insertString(
String? value, {required int at}) → void -
Inserts a String
at
the given index. [...] -
insertValue(
Object? value, {required int at}) → void -
Inserts a
value
at
the given index. [...] -
integer(
int index) → int -
Returns the element at the given
index
as an integer number. [...]inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
number(
int index) → num? -
Returns the element at the given
index
as a num. [...]inherited -
removeValue(
int index) → void -
Removes the value at the given
index
. -
setArray(
Array? value, {required int at}) → void -
Sets an Array
at
the given index. [...] -
setBlob(
Blob? value, {required int at}) → void -
Sets a Blob
at
the given index. [...] -
setBoolean(
bool value, {required int at}) → void -
Sets a bool
at
the given index. [...] -
setData(
Iterable< Object?> data) → void - Replaces the elements of this array with those of the given Iterable. [...]
-
setDate(
DateTime? value, {required int at}) → void -
Sets a DateTime
at
the given index. [...] -
setDictionary(
Dictionary? value, {required int at}) → void -
Sets a Dictionary
at
the given index. [...] -
setFloat(
double value, {required int at}) → void -
Sets a floating point number
at
the given index. [...] -
setInteger(
int value, {required int at}) → void -
Sets an integer number
at
the given index. [...] -
setNumber(
num? value, {required int at}) → void -
Sets a num
at
the given index. [...] -
setString(
String? value, {required int at}) → void -
Sets a String
at
the given index. [...] -
setValue(
Object? value, {required int at}) → void -
Sets a
value
at
the given index. [...] -
string(
int index) → String? -
Returns the element at the given
index
as a String. [...]inherited -
toPlainList(
) → List< Object?> -
Deeply converts this array into a representation of plain Dart objects
and returns it. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
value<
T extends Object> (int index) → T? -
Returns the element at the given
index
. [...]inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
-
operator [](
int index) → MutableFragment -
Returns a MutableFragment for the value at the given
index
.inherited