StaticHeadConfig class
Configuration for the static route HTML generator.
Constructors
-
StaticHeadConfig({required String baseUrl, List<
StaticRoute> routes = const [], WebMetadata defaults = const WebMetadata(), String? siteName, String? titleTemplate, String? defaultImage, String? defaultRobots = 'index, follow', String? themeColor, String? language = 'en', bool? trailingSlash, List<StaticRoutePattern> patterns = const [], bool sitemap = true, bool robotsTxt = true, String? manifest, RenderingStrategy? renderingStrategy}) -
const
-
StaticHeadConfig.fromJson(Map<
String, Object?> json) -
factory
Properties
- baseUrl → String
-
final
- defaultImage → String?
-
final
- defaultRobots → String?
-
final
- defaults → WebMetadata
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
final
- manifest → String?
-
final
-
patterns
→ List<
StaticRoutePattern> -
final
- renderingStrategy → RenderingStrategy?
-
final
- robotsTxt → bool
-
final
-
routes
→ List<
StaticRoute> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sitemap → bool
-
final
- siteName → String?
-
final
- themeColor → String?
-
final
- titleTemplate → String?
-
final
- trailingSlash → bool?
-
final
Methods
-
copyWith(
{String? baseUrl, List< StaticRoute> ? routes, WebMetadata? defaults, String? siteName, String? titleTemplate, String? defaultImage, String? defaultRobots, String? themeColor, String? language, bool? trailingSlash, List<StaticRoutePattern> ? patterns, bool? sitemap, bool? robotsTxt, String? manifest, RenderingStrategy? renderingStrategy}) → StaticHeadConfig -
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
Static Methods
-
load(
File file) → Future< StaticHeadConfig>