XIconData class
XIconData contains the data for dynamically loading icons registered via data sent from the server.
Constructors
- XIconData(String uri, {XIconType? type})
- XIconData.fromAssets(String asset)
-
factory
- XIconData.fromIcon(IconData icon)
-
factory
- XIconData.fromJson(dynamic json)
-
factory
- XIconData.fromMaterialIconName(String name)
-
XIconData.fromMaterialIconName builds XIconData via material icon name such as "add" and "person"
factory
- XIconData.fromRemote(String resource)
-
factory
- XIconData.fromUri(String uri)
-
factory
Properties
- asset → String
-
no setter
- codePoint → int
-
The Unicode code point at which this icon is stored in the icon font.
finalinherited
- fontFamily → String?
-
The font family from which the glyph for the codePoint will be selected.
finalinherited
-
fontFamilyFallback
→ List<
String> ? -
The ordered list of font families to fall back on when a glyph cannot be found in a higher priority font family.
finalinherited
- fontPackage → String?
-
The name of the package from which the font family is included.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
get IconData via mapped string set.
no setter
- matchTextDirection → bool
-
Whether this icon should be automatically mirrored in right-to-left
environments.
finalinherited
- name → String
-
name returns the parsed icon name from the uri. for example, if given uri is "ns://Icons.add", name will be "add"
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → XIconType
-
if
_explicitType
is provided, use it instead of parsing from uri. describes what it stands for.no setter - uri → String
-
the uri is used for representing desired resource.
this can be native local material icons and also can be remote resource url. (and more)
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