BloomRouteConfig class

Annotation for declaring route metadata and guards on BloomRoute classes.

Example:

@BloomRouteConfig(path: '/dashboard', guards: [AuthGuard], title: 'Dashboard')
class DashboardScreen extends BloomRoute {
  const DashboardScreen({super.key});
  @override
  Widget build(BuildContext context) => const Text('Dashboard');
}

Constructors

BloomRouteConfig({String? path, String? name, List<Type> guards = const [], String? title})
Creates a BloomRouteConfig annotation.
const

Properties

guards → List<Type>
List of BloomGuard types applied to this route.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
Unique route name identifier.
final
path → String?
Route path pattern (e.g. '/profile/:id').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
Page title for SEO and document metadata.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited