data property
List
get
data
The data in the array.
When setting to a new value, it will throw an ArgumentError if the
number of dimensions in data
does not match the number of dimensions in
the array it is replacing.
Implementation
List<dynamic> get data => _data;
set
data
(List data)
Implementation
set data(List<dynamic> data) {
final int numDimensions = ListTools.countDimensions(data);
if (numDimensions != this.numDimensions) {
throw ArgumentError('new data must have the same number of dimensions '
'as the original data\n'
'Expected: ${this.numDimensions}\n'
'Actual: $numDimensions');
}
_data = data;
}