closeBucket method

void closeBucket()

Method used to send the close event to the default Bucket.

Bucket is accessed through Bucket.of(context)

Implementation

void closeBucket() {
  Bucket.of(context)?.close();
  Future.microtask(() => _iconAnimationController.animateTo(0));
}