// dart format width=80 /// GENERATED CODE - DO NOT MODIFY BY HAND /// ***************************************************** /// FlutterGen /// ***************************************************** // coverage:ignore-file // ignore_for_file: type=lint // ignore_for_file: deprecated_member_use,directives_ordering,implicit_dynamic_list_literal,unnecessary_import import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_svg/flutter_svg.dart' as _svg; import 'package:lottie/lottie.dart' as _lottie; import 'package:vector_graphics/vector_graphics.dart' as _vg; class $AssetsIconsGen { const $AssetsIconsGen(); /// File path: assets/icons/home.svg SvgGenImage get home => const SvgGenImage('assets/icons/home.svg'); /// List of all assets List get values => [home]; } class $AssetsLottieGen { const $AssetsLottieGen(); /// File path: assets/lottie/splash.json LottieGenImage get splash => const LottieGenImage('assets/lottie/splash.json'); /// List of all assets List get values => [splash]; } class Assets { const Assets._(); static const $AssetsIconsGen icons = $AssetsIconsGen(); static const $AssetsLottieGen lottie = $AssetsLottieGen(); } class SvgGenImage { const SvgGenImage(this._assetName, {this.size, this.flavors = const {}}) : _isVecFormat = false; const SvgGenImage.vec(this._assetName, {this.size, this.flavors = const {}}) : _isVecFormat = true; final String _assetName; final Size? size; final Set flavors; final bool _isVecFormat; _svg.SvgPicture svg({ Key? key, bool matchTextDirection = false, AssetBundle? bundle, String? package, double? width, double? height, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center, bool allowDrawingOutsideViewBox = false, WidgetBuilder? placeholderBuilder, String? semanticsLabel, bool excludeFromSemantics = false, _svg.SvgTheme? theme, _svg.ColorMapper? colorMapper, ColorFilter? colorFilter, Clip clipBehavior = Clip.hardEdge, @deprecated Color? color, @deprecated BlendMode colorBlendMode = BlendMode.srcIn, @deprecated bool cacheColorFilter = false, }) { final _svg.BytesLoader loader; if (_isVecFormat) { loader = _vg.AssetBytesLoader( _assetName, assetBundle: bundle, packageName: package, ); } else { loader = _svg.SvgAssetLoader( _assetName, assetBundle: bundle, packageName: package, theme: theme, colorMapper: colorMapper, ); } return _svg.SvgPicture( loader, key: key, matchTextDirection: matchTextDirection, width: width, height: height, fit: fit, alignment: alignment, allowDrawingOutsideViewBox: allowDrawingOutsideViewBox, placeholderBuilder: placeholderBuilder, semanticsLabel: semanticsLabel, excludeFromSemantics: excludeFromSemantics, colorFilter: colorFilter ?? (color == null ? null : ColorFilter.mode(color, colorBlendMode)), clipBehavior: clipBehavior, cacheColorFilter: cacheColorFilter, ); } String get path => _assetName; String get keyName => _assetName; } class LottieGenImage { const LottieGenImage(this._assetName, {this.flavors = const {}}); final String _assetName; final Set flavors; _lottie.LottieBuilder lottie({ Animation? controller, bool? animate, _lottie.FrameRate? frameRate, bool? repeat, bool? reverse, _lottie.LottieDelegates? delegates, _lottie.LottieOptions? options, void Function(_lottie.LottieComposition)? onLoaded, _lottie.LottieImageProviderFactory? imageProviderFactory, Key? key, AssetBundle? bundle, Widget Function(BuildContext, Widget, _lottie.LottieComposition?)? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, double? width, double? height, BoxFit? fit, AlignmentGeometry? alignment, String? package, bool? addRepaintBoundary, FilterQuality? filterQuality, void Function(String)? onWarning, _lottie.LottieDecoder? decoder, _lottie.RenderCache? renderCache, bool? backgroundLoading, }) { return _lottie.Lottie.asset( _assetName, controller: controller, animate: animate, frameRate: frameRate, repeat: repeat, reverse: reverse, delegates: delegates, options: options, onLoaded: onLoaded, imageProviderFactory: imageProviderFactory, key: key, bundle: bundle, frameBuilder: frameBuilder, errorBuilder: errorBuilder, width: width, height: height, fit: fit, alignment: alignment, package: package, addRepaintBoundary: addRepaintBoundary, filterQuality: filterQuality, onWarning: onWarning, decoder: decoder, renderCache: renderCache, backgroundLoading: backgroundLoading, ); } String get path => _assetName; String get keyName => _assetName; }