dataValueOrNull property

T? get dataValueOrNull

Returns data if kind is NotificationKind.data, otherwise returns null.

Implementation

T? get dataValueOrNull {
  final self = this;
  return self is DataNotification<T> ? self.value : null;
}