PermissionListPage constructor

PermissionListPage({
  1. Key? key,
  2. required IPermissionListViewModel viewModel,
  3. String? backTo,
  4. 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();
      });
}