NiceAdminRoles constructor
const
NiceAdminRoles({ - Key? key,
- required List<NiceAdminRole> roles,
- required List<NicePermissionAction> actions,
- required List<NicePermissionResource> resources,
- void onPermissionChange(
- String roleId,
- String resourceId,
- String actionId,
- bool granted,
)?,
- void onCreate(
- String name,
- String description
)?,
- void onDelete(
- String roleId
)?,
- void onRename(
- String roleId,
- String name
)?,
- 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',
});