PageOptions class
Configuration options for page rendering.
Constructors
-
PageOptions({required String title, required String content, String? scriptName, List<
String> additionalScripts = const [], List<String> stylesheets = const [], Object? inlineStyles, Object? headContent, String lang = 'en', String charset = 'UTF-8', String viewport = 'width=device-width, initial-scale=1', List<String> metaTags = const [], String? nonce}) -
Creates page options.
const
Properties
-
additionalScripts
→ List<
String> -
Additional scripts to load.
final
- charset → String
-
The charset meta tag value.
final
- content → String
-
The main body content (rendered components).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headContent → Object?
-
Additional content for the head section.
final
- inlineStyles → Object?
-
Inline CSS to include in the head.
final
- lang → String
-
The language attribute for the HTML element.
final
-
metaTags
→ List<
String> -
Additional meta tags as HTML strings.
final
- nonce → String?
-
The nonce for Content-Security-Policy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scriptName → String?
-
The JavaScript file to load for hydration (e.g., 'home.dart.js').
final
-
stylesheets
→ List<
String> -
Additional stylesheets to load.
final
- title → String
-
The page title displayed in the browser tab.
final
- viewport → String
-
The viewport meta tag content.
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