ok property Null safety

bool ok

Returns true if there is not error

Simply check if error is null

Implementation

bool get ok {
  return error == null;
}