ifElseNull method

T? ifElseNull(
  1. bool condition
)

Implementation

T? ifElseNull(bool condition) => condition ? this : null;