toggle method

Widget toggle()

Implementation

Widget toggle() {
  return Container(
    child: FloatingActionButton(
      backgroundColor: _buttonColor.value,
      onPressed: animate,
      tooltip: 'Toggle',
      child: AnimatedIcon(
        icon: widget.animatedIconData!,
        progress: _animateIcon,
      ),
    ),
  );
}