dataOrNull<T> method

T? dataOrNull<T>()

Implementation

T? dataOrNull<T>() => this is Success
    ? (this as Success).data
    : null;