ModulaErrorState.accessDenied constructor

ModulaErrorState.accessDenied({
  1. String? title,
  2. String? description,
  3. Widget? action,
})

Implementation

factory ModulaErrorState.accessDenied({
  String? title,
  String? description,
  Widget? action,
}) {
  return ModulaErrorState(
    type: ModulaErrorStateType.accessDenied,
    title: title ?? 'Access Denied',
    description:
        description ?? 'You do not have permission to access this resource.',
    action: action,
  );
}