DartIconsGenerator class
The IconFont generator for dart.
- Inheritance
-
- Object
- IconsGenerator
- DartIconsGenerator
- Annotations
-
- @immutable
Constructors
-
DartIconsGenerator({required String importPath, required String exportPath, required String fontExportPath, Encoding? exportEncoding, Encoding? encoding, DartFormatter? formatter, String? baseName, String? fontFamily, int? height, int? descent, bool? normalize, Map<
String, Object?> ? package, int? baseCodePoint, bool? convert, bool? yarn, bool? force}) - The IconFont generator for dart.
Properties
- baseCodePoint → int
-
The starting code point for referencing
IconFont
icons.
finalinherited
- baseName → String
-
The name of the base assets class.
finalinherited
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setterinherited
- convert → bool
-
If the
IconFont
names should be converted using
StringUtils.toCamelCase.finalinherited - descent → int?
-
The descent is usefull to fix the font baseline.
finalinherited
- encoding → Encoding
-
The encoding used for reading the
.jsonand.yamlfiles.finalinherited - exportEncoding → Encoding
-
The encoding used for writing the
.dartfiles.finalinherited - exportPath → String
-
The path to export data to.
finalinherited
-
fileMap
→ Map<
String, Object?> -
The map of files that was loaded from
importPath.finalinherited - fontExportPath → String
-
The path to export generated font to.
finalinherited
- fontFamily → String
-
The name of the font specified in pubspec.yaml.
finalinherited
- force → bool
-
If the package should be installed forcefully. Otherwise, if
fantasticonexecutable is present, installation is ommited.finalinherited - formatter → DartFormatter
-
The
formatterused to format generated files.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
The height of the heighest icon.
finalinherited
-
iconsMap
→ Map<
String, Object?> -
The
IconFont
path graph.
finalinherited
- importPath → String
-
The path to import data from.
finalinherited
- loadFiles → bool
-
If file contents should be loaded during
buildintofileMap.finalinherited - normalize → bool?
-
If the icons should be normalized by scaling them to the height of the
highest icon.
finalinherited
-
package
→ Map<
String, Object?> -
The js package to run
npm installoryarn installwith.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- yarn → bool
-
If the package should be installed with
yarninstead ofnpm.finalinherited
Methods
-
build(
[BuildStep? buildStep]) → FutureOr< void> -
Generate
IconFont
from fileMap.
override
-
className(
String name, [Iterable< String> keys = const Iterable<String>.empty()]) → String -
Return the class name from the base
nameandkeys.inherited -
generate(
Map< String, Object?> iconsMap) → String -
Generate a single
IconFont
file from
iconsMap. -
generateHeader(
StringBuffer buffer, Map< String, Object?> iconsMap) → void - Generate a header for the IconFont file.
-
generateModel(
StringBuffer buffer, Map< String, Object?> iconsMap, String name, {Iterable<String> keys = const Iterable<String>.empty()}) → void -
Generate a
model nested from
keys. -
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