Flutter-specific helpers to be used with Highcharts Flutter.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
- pathPattern → RegExp
-
Used to distinguish asset paths from URLs.
Expected input: relative or absolute file paths (e.g. 'assets/custom.js').
final
- protocolPattern → RegExp
-
Used to identify URLs as opposed to local asset paths.
Expected input: URI strings (e.g. 'https://example.com/custom.js').
final
Static Methods
-
escapeHTML(
String? text) → String - Replaces special HTML characters with escape sequences.
-
fetchList<
T> (Uri uri) → Future< List< T> ?> - Fetches a JSON list from a URI. Returns null if the request fails or decoding fails.
-
fetchMap(
Uri uri) → Future< Map< String, dynamic> ?> - Fetches a JSON map from a URI. Returns null if the request fails or decoding fails.
-
loadAssets(
List< String> assetPaths, {AssetBundle? assetBundle}) → Future<List< String> > - Loads a list of asset paths and returns the bundles assets as raw strings.
-
scriptTag(
String? scriptOrURL) → String - Creates a script tag with the script code as a data URI.
-
styleTag(
String? css) → String - Creates a style tag with the CSS code.