ArgonTimerButton constructor

ArgonTimerButton(
  1. {@required double height,
  2. @required double width,
  3. double minWidth: 0,
  4. dynamic loader(
    1. int time
    ),
  5. Duration animationDuration: const Duration(milliseconds: 450),
  6. Curve curve: Curves.easeInOutCirc,
  7. Curve reverseCurve: Curves.easeInOutCirc,
  8. @required Widget child,
  9. dynamic onTap(
    1. Function startTimer,
    2. ButtonState btnState
    ),
  10. Color color,
  11. Color focusColor,
  12. Color hoverColor,
  13. Color highlightColor,
  14. Color splashColor,
  15. Brightness colorBrightness,
  16. double elevation,
  17. double focusElevation,
  18. double hoverElevation,
  19. double highlightElevation,
  20. EdgeInsetsGeometry padding: const EdgeInsets.all(0),
  21. double borderRadius: 0.0,
  22. Clip clipBehavior: Clip.none,
  23. FocusNode focusNode,
  24. MaterialTapTargetSize materialTapTargetSize,
  25. bool roundLoadingShape: true,
  26. BorderSide borderSide: const BorderSide(color: Colors.transparent, width: 0),
  27. double disabledElevation,
  28. Color disabledColor,
  29. Color disabledTextColor,
  30. int initialTimer: 0}
)

Implementation

ArgonTimerButton(
    {@required this.height,
    @required this.width,
    this.minWidth: 0,
    this.loader,
    this.animationDuration: const Duration(milliseconds: 450),
    this.curve: Curves.easeInOutCirc,
    this.reverseCurve: Curves.easeInOutCirc,
    @required this.child,
    this.onTap,
    this.color,
    this.focusColor,
    this.hoverColor,
    this.highlightColor,
    this.splashColor,
    this.colorBrightness,
    this.elevation,
    this.focusElevation,
    this.hoverElevation,
    this.highlightElevation,
    this.padding: const EdgeInsets.all(0),
    this.borderRadius: 0.0,
    this.clipBehavior: Clip.none,
    this.focusNode,
    this.materialTapTargetSize,
    this.roundLoadingShape: true,
    this.borderSide: const BorderSide(color: Colors.transparent, width: 0),
    this.disabledElevation,
    this.disabledColor,
    this.disabledTextColor,
    this.initialTimer: 0})
    : assert(elevation == null || elevation >= 0.0),
      assert(focusElevation == null || focusElevation >= 0.0),
      assert(hoverElevation == null || hoverElevation >= 0.0),
      assert(highlightElevation == null || highlightElevation >= 0.0),
      assert(disabledElevation == null || disabledElevation >= 0.0),
      assert(clipBehavior != null);