getOrDefault method

  1. @override
S getOrDefault(
  1. S defaultValue
)
override

Returns the encapsulated value if this instance represents Success or the defaultValue if it is Failure.

Implementation

@override
S getOrDefault(S defaultValue) => _success;