PermissionListPage constructor
PermissionListPage({
- Key? key,
- required IPermissionListViewModel viewModel,
- String? backTo,
- Color? color,
Implementation
PermissionListPage({
Key? key,
required IPermissionListViewModel viewModel,
this.backTo,
this.color,
}) : super(key: key, viewModel: viewModel) {
_permissionItemViewBuilder = PermissionItemViewBuilder(
permissions: viewModel.permissions,
color: color,
onRefresh: () {
this.viewModel.refresh();
});
}