Photon constructor

const Photon(
  1. Key? key,
  2. String path, {
  3. dynamic height = const [0, double.infinity],
  4. dynamic width = const [0, double.infinity],
  5. List<double> margin = const [0, 0, 0, 0],
  6. List<double>? radius,
  7. double elevation = 0,
  8. GestureTapCallback? onTap,
  9. bool isCircle = false,
  10. BorderSide border = BorderSide.none,
  11. Widget? child,
})

Implementation

const Photon(
  Key? key,
  this.path, {
  this.height = const [0, double.infinity],
  this.width = const [0, double.infinity],
  this.margin = const [0, 0, 0, 0],
  this.radius,
  this.elevation = 0,
  this.onTap,
  this.isCircle = false,
  this.border = BorderSide.none,
  this.child,
}) : super(key: key);