TopToolsWidget constructor

const TopToolsWidget({
  1. Key? key,
  2. required bool isTextInput,
  3. required Duration animationsDuration,
  4. int selectedBackgroundGradientIndex = 0,
  5. int selectedTextBackgroundGradientIndex = 0,
  6. required VoidCallback onScreenTap,
  7. required VoidCallback onPickerTap,
  8. required VoidCallback onToggleTextColorPicker,
  9. required VoidCallback onChangeTextBackground,
  10. EditableItem? activeItem,
})

Creates an instance of the widget.

All parameters are required and must not be null.

Implementation

const TopToolsWidget({
  super.key,
  required this.isTextInput,
  required this.animationsDuration,
  this.selectedBackgroundGradientIndex = 0,
  this.selectedTextBackgroundGradientIndex = 0,
  required this.onScreenTap,
  required this.onPickerTap,
  required this.onToggleTextColorPicker,
  required this.onChangeTextBackground,
  this.activeItem,
});