PermissionHandler.custom constructor

PermissionHandler.custom({
  1. required PermissionCheckerCallback callback,
  2. bool beforeNeed = false,
})

Implementation

PermissionHandler.custom(
    {required PermissionCheckerCallback callback, this.beforeNeed = false}) {
  checker = (_) {
    return callback(_);
  };
}