dispose method

  1. @override
void dispose()
override

Closes streams depending on the current state

Implementation

@override
void dispose() {
  _permissionStreamSub?.cancel();
  _physicalButtonStreamSub?.cancel();
}