IEventBase<T> constructor

const IEventBase<T>({
  1. required T? data,
})

Base interface for all application events. Provides common functionality for event data handling and equality comparison.

Generic type T represents the type of data that event carries. All events are equatable by their data.

{@macro iEventBase}

Implementation

const IEventBase({required this.data});