Method constructor
Implementation
Method({
required this.path,
required this.func,
this.method = Methods.get,
List<UserRole>? role,
}) : role = role ?? [UserRole.guest];
Method({
required this.path,
required this.func,
this.method = Methods.get,
List<UserRole>? role,
}) : role = role ?? [UserRole.guest];