clearEvents method Null safety

void clearEvents(
  1. SynthizerObject object,
  2. {double? time}
)

Clear all events for object.

If time is null, then currentTime will be used.

Implementation

void clearEvents(final SynthizerObject object, {final double? time}) =>
    AutomationBatch(this)
      ..clearEvents(object.handle, time ?? currentTime.value)
      ..execute()
      ..destroy();