error property Null safety

ErrorRef? error
optional">@optionalread / write

The error which occurred during class finalization, if it exists.

Implementation

@optional
ErrorRef? error;