cancel method

void cancel()

Cancel a running animation early (e.g. on widget dispose).

Implementation

void cancel() => _cancelled = true;