asError property

  1. @override
ErrorResult? get asError
override

If this is an error result, returns itself.

Otherwise returns null.

Implementation

@override
ErrorResult? get asError => null;