NiceAdminRoles constructor

const NiceAdminRoles({
  1. Key? key,
  2. required List<NiceAdminRole> roles,
  3. required List<NicePermissionAction> actions,
  4. required List<NicePermissionResource> resources,
  5. void onPermissionChange(
    1. String roleId,
    2. String resourceId,
    3. String actionId,
    4. bool granted,
    )?,
  6. void onCreate(
    1. String name,
    2. String description
    )?,
  7. void onDelete(
    1. String roleId
    )?,
  8. void onRename(
    1. String roleId,
    2. String name
    )?,
  9. String title = 'Role Management',
})

Implementation

const NiceAdminRoles({
  super.key,
  required this.roles,
  required this.actions,
  required this.resources,
  this.onPermissionChange,
  this.onCreate,
  this.onDelete,
  this.onRename,
  this.title = 'Role Management',
});