TrinaGridEvent constructor

TrinaGridEvent({
  1. TrinaGridEventType type = TrinaGridEventType.normal,
  2. Duration? duration,
})

Implementation

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