withNullable method
Copies the result with the nullable
information, if there is one. If
there isn't, the failure state will be copied into the new
ResolveResult.
Implementation
ResolveResult withNullable(bool nullable) {
return mapResult((r) => r!.withNullable(nullable));
}