randomValue method

V randomValue()

return random value or throw state error

Implementation

V randomValue() =>
    randomValueOrNull() ??
    (throw StateError('Map is Empty cant use randomValue()'));