AwesomeFilterButton constructor

AwesomeFilterButton({
  1. Key? key,
  2. required CameraState state,
  3. AwesomeTheme? theme,
  4. Widget iconBuilder()?,
  5. void onFilterTap()?,
})

Implementation

AwesomeFilterButton({
  super.key,
  required this.state,
  this.theme,
  Widget Function()? iconBuilder,
  final void Function()? onFilterTap,
})  : iconBuilder = iconBuilder ??
          (() {
            return AwesomeCircleWidget.icon(
              icon: Icons.filter_rounded,
              theme: theme,
            );
          }),
      onFilterTap = onFilterTap ?? (() => state.toggleFilterSelector());