filterButton property

(Widget Function(FilterModel filter, bool isSelected, double? scaleFactor, dynamic onSelectFilter(), Widget editorImage, Key filterKey)?) filterButton
final

Creating a widget that represents a filter button in an editor.

filter - The FilterModel representing the filter applied by the button. isSelected - A boolean indicating whether the filter is currently selected. scaleFactor - An optional double representing the scale factor for the button. onSelectFilter - A callback function to handle the filter selection. editorImage - A widget representing the image being edited. filterKey - A Key to uniquely identify the filter button.

Returns a Widget representing the filter button in the editor.

Implementation

final Widget Function(
  FilterModel filter,
  bool isSelected,
  double? scaleFactor,
  Function() onSelectFilter,
  Widget editorImage,
  Key filterKey,
)? filterButton;