isOk method

  1. @override
bool isOk()
override

Used to check if a Result is an OK

Returns true if the result is an OK variant of Result

Implementation

@override
// ignore: unnecessary_type_check
bool isOk() => this is Ok<T, E>;