data property

T get data

Implementation

T get data {
  if (!hasData) {
    throw StateError('This snapshot does not have data');
  }

  return _data as T;
}