Magnifier constructor

const Magnifier({
  1. Key? key,
  2. Offset additionalFocalPointOffset = Offset.zero,
  3. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(_borderRadius)),
  4. Color filmColor = const Color.fromARGB(8, 158, 158, 158),
  5. List<BoxShadow> shadows = const <BoxShadow>[BoxShadow(blurRadius: 1.5, offset: Offset(0.0, 2.0), spreadRadius: 0.75, color: Color.fromARGB(25, 0, 0, 0))],
  6. Clip clipBehavior = Clip.hardEdge,
  7. Size size = Magnifier.kDefaultMagnifierSize,
})

Creates a RawMagnifier in the Material style.

Implementation

const Magnifier({
  super.key,
  this.additionalFocalPointOffset = Offset.zero,
  this.borderRadius = const BorderRadius.all(Radius.circular(_borderRadius)),
  this.filmColor = const Color.fromARGB(8, 158, 158, 158),
  this.shadows = const <BoxShadow>[
    BoxShadow(
      blurRadius: 1.5,
      offset: Offset(0.0, 2.0),
      spreadRadius: 0.75,
      color: Color.fromARGB(25, 0, 0, 0),
    )
  ],
  this.clipBehavior = Clip.hardEdge,
  this.size = Magnifier.kDefaultMagnifierSize,
});