FlutterGen constructor
FlutterGen({
- required String output,
- required int lineLength1,
- required int lineLength0,
- required bool nullSafety,
- required FlutterGenAssets assets,
- required FlutterGenFonts fonts,
- required FlutterGenIntegrations integrations,
- required FlutterGenColors colors,
Implementation
FlutterGen({
required this.output,
required this.lineLength1,
required this.lineLength0,
required this.nullSafety,
required this.assets,
required this.fonts,
required this.integrations,
required this.colors,
}) {
// ignore: deprecated_member_use_from_same_package
if (lineLength1 <= 0 && lineLength0 <= 0) {
throw ArgumentError.value(
// ignore: deprecated_member_use_from_same_package
lineLength1 <= 0 ? lineLength1 : lineLength0,
lineLength1 <= 0 ? 'line_length' : 'lineLength',
);
}
// ignore: deprecated_member_use_from_same_package
if (lineLength0 > 0) {
print('Warning: key lineLength is deprecated, use line_length instead.');
}
}