FlutterGen constructor

FlutterGen({
  1. required String output,
  2. required int lineLength1,
  3. required int lineLength0,
  4. required bool nullSafety,
  5. required FlutterGenAssets assets,
  6. required FlutterGenFonts fonts,
  7. required FlutterGenIntegrations integrations,
  8. 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.');
  }
}