Image constructor Null safety

const Image(
  1. {Key? key,
  2. required ImageProvider image,
  3. String? semanticLabel,
  4. bool excludeFromSemantics,
  5. double? width,
  6. double? height,
  7. Color? color,
  8. BlendMode? colorBlendMode,
  9. BoxFit? fit,
  10. Alignment alignment,
  11. ImageRepeat repeat,
  12. Rect? centerSlice,
  13. bool matchTextDirection,
  14. bool gaplessPlayback,
  15. bool isAntiAlias,
  16. FilterQuality filterQuality}
)

Implementation

const factory Image(
    {final Key? key,
    required final ImageProvider image,
    final String? semanticLabel,
    final bool excludeFromSemantics,
    final double? width,
    final double? height,
    final Color? color,
    final BlendMode? colorBlendMode,
    final BoxFit? fit,
    final Alignment alignment,
    final ImageRepeat repeat,
    final Rect? centerSlice,
    final bool matchTextDirection,
    final bool gaplessPlayback,
    final bool isAntiAlias,
    final FilterQuality filterQuality}) = _$Image;