TextDurationButton constructor

const TextDurationButton({
  1. Key? key,
  2. required Text text,
  3. required Duration duration,
  4. required VoidCallback onPressed,
  5. BorderRadius? borderRadius,
  6. VoidCallback? onComplete,
  7. Color? splashColor,
  8. InteractiveInkFeatureFactory? splashFactory,
  9. double? width,
  10. double? height,
  11. bool? coverChild,
  12. Color? coverColor,
  13. Color? hoverColor,
})

Implementation

const TextDurationButton({
  Key? key,
  required final Text text,
  required final Duration duration,
  required final VoidCallback onPressed,
  final BorderRadius? borderRadius,
  final VoidCallback? onComplete,
  final Color? splashColor,
  final InteractiveInkFeatureFactory? splashFactory,
  final double? width,
  final double? height,
  final bool? coverChild,
  final Color? coverColor,
  final Color? hoverColor,
}) : super(
        key: key,
        duration: duration,
        onPressed: onPressed,
        onComplete: onComplete,
        width: width,
        height: height,
        splashColor: splashColor,
        splashFactory: splashFactory,
        backgroundColor: Colors.transparent,
        child: text,
        borderRadius: borderRadius ?? BorderRadius.zero,
        coverChild: coverChild,
        coverColor: coverColor,
        hoverColor: hoverColor,
      );