MPSEvent<T> constructor

const MPSEvent<T>(
  1. String type, [
  2. T? data
])

Creates a new MPSEvent object with the given type and data.

Implementation

const MPSEvent(
  this.type, [
  this.data,
]);