StaticPageRoute class

Represents a route with associated SEO metadata, component tree, and static HTML content.

Constructors

StaticPageRoute({required String path, WebMetadata metadata = const WebMetadata(), MantleComponent? component, StaticComponentBuilder? componentBuilder, String? htmlContent, Object? dataSource})
const
StaticPageRoute.fromJson(Map<String, Object?> json)
Deserializes a route from JSON.
factory

Properties

component → MantleComponent?
final
componentBuilder → StaticComponentBuilder?
final
dataSource → Object?
final
hashCode → int
The hash code for this object.
no setterinherited
htmlContent → String?
final
metadata → WebMetadata
final
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? path, WebMetadata? metadata, MantleComponent? component, StaticComponentBuilder? componentBuilder, String? htmlContent, Object? dataSource}) → StaticPageRoute
Copies this route with optional overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveComponent(MantleContext context) → MantleComponent?
Resolves the component for this route using context.
toJson() → Map<String, Object?>
Serializes this route to JSON for inter-process communication.
toString() → String
A string representation of this object.
override

Operators

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