get method
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;
}
Retrieves the wrapped object as dynamic. Throws natively if empty.
dynamic get() {
if (!_hasValue) {
throw StateError('Any is empty natively! Cannot randomly get.');
}
return _value;
}