onRestrictedCallback method

Permission onRestrictedCallback(
  1. FutureOr<void>? callback()?
)

Method to set a callback for when permission is restricted.

Implementation

Permission onRestrictedCallback(FutureOr<void>? Function()? callback) {
  _onRestricted = callback;
  return this;
}