MapButton constructor

const MapButton({
  1. Key? key,
  2. String? id,
  3. required void onPressed(
    1. BuildContext
    ),
  4. void onLongPressed(
    1. BuildContext
    )?,
  5. MultiIcon? icon,
  6. Widget? child,
  7. bool enabled = true,
  8. String? tooltip,
})

Implementation

const MapButton({
  super.key,
  this.id,
  required this.onPressed,
  this.onLongPressed,
  this.icon,
  this.child,
  this.enabled = true,
  this.tooltip,
}) : assert(icon != null || child != null);