initData method

  1. @override
dynamic initData(
  1. dynamic data
)
override

Implementation

@override
initData(dynamic data) {
  if (data is! List<dynamic>) {
    throw InvalidMessageException(
        'tried to update the collection $rid with ${data.runtimeType}', data);
  }
  _items.clear();
  _items.addAll(
      data.map((value) => _client.parseValue(value, addIndirect: true)));
}