mirror of
https://github.com/lucavenir/go_router_riverpod.git
synced 2025-08-06 14:59:53 +08:00
14 lines
399 B
Dart
14 lines
399 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'user_role.freezed.dart';
|
|
|
|
/// Self-explanatory entity class.
|
|
/// It is used to distinguish the logged in user permissions.
|
|
@freezed
|
|
class UserRole with _$UserRole {
|
|
const factory UserRole.admin() = Admin;
|
|
const factory UserRole.user() = User;
|
|
const factory UserRole.guest() = Guest;
|
|
const factory UserRole.none() = None;
|
|
}
|