IconsGenerator constructor

IconsGenerator({
  1. required String importPath,
  2. required String exportPath,
  3. required String fontExportPath,
  4. Encoding? exportEncoding,
  5. Encoding? encoding,
  6. DartFormatter? formatter,
  7. String? baseName,
  8. String? fontFamily,
  9. int? baseCodePoint,
  10. int? height,
  11. int? descent,
  12. bool? normalize,
  13. Map<String, Object?>? package,
  14. bool? convert,
  15. bool? yarn,
  16. bool? force,
})

The architecture of the IconFont generator.

Implementation

IconsGenerator({
  required super.importPath,
  required super.exportPath,
  required this.fontExportPath,
  super.exportEncoding,
  super.encoding,
  super.formatter,
  final String? baseName,
  final String? fontFamily,
  final int? baseCodePoint,
  this.height,
  this.descent,
  this.normalize,
  final Map<String, Object?>? package,
  final bool? convert,
  final bool? yarn,
  final bool? force,
})  : baseName = baseName ?? 'Icons',
      fontFamily = fontFamily ?? 'Icons',
      baseCodePoint = baseCodePoint ?? 0xf101,
      package = package ??
          const <String, Object?>{
            'private': true,
            'devDependencies': <String, Object?>{'fantasticon': '^1.2.3'},
          },
      convert = convert ?? true,
      yarn = yarn ?? false,
      force = force ?? false;