generate method
Implementation
String generate() {
final classContent = [
'\t$_className._();\n',
_fontFamilyConst,
if (_hasPackage) _fontPackageConst,
for (var i = 0; i < glyphList.length; i++) ..._generateIconConst(i),
];
final classContentString =
classContent.map((e) => e.isEmpty ? '' : '$_indent$e').join('\n');
return '''
import 'package:flutter/widgets.dart';
/// To use this class, make sure you declare the font in your
/// project's `pubspec.yaml` file in the `fonts` section. This ensures that
/// the "$_familyName" font is included in your application. This font is used to
/// display the icons. For example:
///
/// flutter:
/// fonts:
/// - family: $_familyName
/// fonts:
/// - asset: $fontFileName
class $_className {
$classContentString
}
''';
}