RemovableContent constructor

const RemovableContent({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback? onPress,
  4. double buttonSize = 24.0,
  5. Offset position = const Offset(-8, -8),
  6. IconData icon = Icons.close,
  7. Color buttonColor = Colors.red,
  8. Color iconColor = Colors.white,
  9. bool disabled = false,
})

Implementation

const RemovableContent({
  super.key,
  required this.child,
  required this.onPress,
  this.buttonSize = 24.0,
  this.position = const Offset(-8, -8),
  this.icon = Icons.close,
  this.buttonColor = Colors.red,
  this.iconColor = Colors.white,
  this.disabled = false,
});