Widget.magnifier constructor Null safety

const Widget.magnifier(
  1. {Key? key,
  2. @Default(Offset.zero) Offset additionalFocalPointOffset,
  3. @Default(BorderRadius.all(Radius.circular(40))) BorderRadius borderRadius,
  4. @Default(Color.fromARGB(8, 158, 158, 158)) Color filmColor,
  5. @Default([BoxShadow(blurRadius: 1.5, offset: Offset(0, 2), spreadRadius: 0.75, color: Color.fromARGB(25, 0, 0, 0))]) List<BoxShadow> shadows,
  6. @Default(Size(77.37, 37.9)) Size size}
)

Implementation

const factory Widget.magnifier({
  Key? key,
  @Default(Offset.zero)
      Offset additionalFocalPointOffset,
  @Default(BorderRadius.all(Radius.circular(40)))
      BorderRadius borderRadius,
  @Default(Color.fromARGB(8, 158, 158, 158))
      Color filmColor,
  @Default([
    BoxShadow(
        blurRadius: 1.5,
        offset: Offset(0, 2),
        spreadRadius: 0.75,
        color: Color.fromARGB(25, 0, 0, 0))
  ])
      List<BoxShadow> shadows,
  @Default(Size(77.37, 37.9))
      Size size,
}) = Magnifier;