FlutterClassGenerator class
A helper for generating Flutter-compatible class with IconData objects for each icon.
Constructors
-
FlutterClassGenerator(List<
GenericGlyph> glyphList, {String? className, String? familyName, String? fontFileName, String? package, int? indent}) -
- glyphList is a list of non-default glyphs.
className
is generated class' name (preferably, in PascalCase).familyName
is font's family name to use in IconData.package
is the name of a font package. Used to provide a font through package dependency.fontFileName
is font file's name. Used in generated docs for class.indent
is a number of spaces in leading indentation for class' members. Defaults to 2.
Properties
-
glyphList
→ List<
GenericGlyph> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generate(
) → String - Generates content for a class' file.
-
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