get method

dynamic get()

Retrieves the wrapped object as dynamic. Throws natively if empty.

Implementation

dynamic get() {
  if (!_hasValue) {
    throw StateError('Any is empty natively! Cannot randomly get.');
  }
  return _value;
}