tryGetValue method

bool tryGetValue(
  1. bool fn(
    1. dynamic value
    )
)

Implementation

bool tryGetValue(bool Function(dynamic value) fn) {
  try {
    return fn(_value);
  } catch (e) {
    return false;
  }
}