CSSLinkHtmlTagAttributes class
Class that represents the possible CSS stylesheet <link>
HTML attributes to be set used by PlatformInAppWebViewController.injectCSSFileFromUrl.
Constructors
- CSSLinkHtmlTagAttributes({bool? alternate, CrossOrigin? crossOrigin, bool? disabled, String? id, String? integrity, String? media, ReferrerPolicy? referrerPolicy, String? title})
Properties
- alternate ↔ bool?
-
Specify alternative style sheets.
getter/setter pair
- crossOrigin ↔ CrossOrigin?
-
Normal script elements pass minimal information to the
window.onerror
for scripts which do not pass the standard CORS checks. To allow error logging for sites which use a separate domain for static media, use this attribute.getter/setter pair - disabled ↔ bool?
-
The disabled Boolean attribute indicates whether or not the described stylesheet should be loaded and applied to the document.
If disabled is specified in the HTML when it is loaded, the stylesheet will not be loaded during page load.
Instead, the stylesheet will be loaded on-demand, if and when the disabled attribute is changed to
false
or removed.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The HTML id attribute is used to specify a unique id for the
<link>
HTML element.getter/setter pair - integrity ↔ String?
-
This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation.
getter/setter pair
- media ↔ String?
-
This attribute specifies the media that the linked resource applies to. Its value must be a media type / media query.
This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.
getter/setter pair
- referrerPolicy ↔ ReferrerPolicy?
-
Indicates which referrer to send when fetching the script, or resources fetched by the script.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String?
-
The title attribute has special semantics on the
<link>
element. When used on a<link rel="stylesheet">
it defines a preferred or an alternate stylesheet. Incorrectly using it may cause the stylesheet to be ignored.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts instance to a map.
-
toMap(
) → Map< String, dynamic> - Converts instance to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map) → CSSLinkHtmlTagAttributes? - Gets a possible CSSLinkHtmlTagAttributes instance from a Map value.