accountOrNull property

Account? get accountOrNull

Returns Account if this data is Account, otherwise null.

Implementation

Account? get accountOrNull => isAccount ? account : null;