AppPermission constructor

AppPermission(
  1. Permission permission, {
  2. Widget? icon,
  3. String? title,
  4. String? description,
  5. String? errorDescription,
  6. bool mandatory = false,
})

Implementation

AppPermission(
  this.permission, {
  this.icon,
  this.title,
  this.description,
  this.errorDescription,
  this.mandatory = false,
}) : assert(!mandatory ||
          (mandatory &&
              (errorDescription != null && errorDescription.isNotEmpty)));