FlutterWebButton.backgroundColorChange constructor

FlutterWebButton.backgroundColorChange(
  1. String? text, {
  2. Key? key,
  3. required VoidCallback? onPressed,
  4. required FlutterWebButtonOptions? flutterWebButtonOptions,
  5. Color? backgroundAnimatedColor,
  6. Color? textAnimatedColor,
  7. Duration? animationDuration,
})

Button Constructors Animates the background color only.

Implementation

/// Animates the background color only.
FlutterWebButton.backgroundColorChange(
  this.text, {
  Key? key,
  required this.onPressed,
  required this.flutterWebButtonOptions,
  this.backgroundAnimatedColor,
  this.textAnimatedColor,
  this.animationDuration,
})  : _buttonType = FlutterWebButtonList.backgroundColorChange,
      super(key: key);