requireDataValue property

T get requireDataValue

Returns data if kind is NotificationKind.data, otherwise throws a TypeError error. See also dataValueOrNull.

Implementation

T get requireDataValue => (this as DataNotification<T>).value;