PlutoGridEvent constructor

PlutoGridEvent({
  1. PlutoGridEventType type = PlutoGridEventType.normal,
  2. Duration? duration,
})

Implementation

PlutoGridEvent({
  this.type = PlutoGridEventType.normal,
  this.duration,
}) : assert(
        type.isNormal || duration != null,
        'If type is normal or type is not normal then duration is required.',
      );