TrailingButton constructor

const TrailingButton({
  1. Key? key,
  2. required double? buttonWidth,
  3. required double? buttonHeight,
  4. required String? label,
  5. required Widget? trailing,
  6. required VoidCallback? onClick,
  7. required Duration? animationDuration,
  8. required Curve? curve,
  9. required bool enableAnimation,
  10. TextStyle? labelStyle,
  11. double? trailingGap,
  12. EdgeInsetsGeometry? buttonMargin,
  13. double? trailingMovement,
})

Implementation

const TrailingButton({
  Key? key,
  required this.buttonWidth,
  required this.buttonHeight,
  required this.label,
  required this.trailing,
  required this.onClick,
  required this.animationDuration,
  required this.curve,
  required this.enableAnimation,
  this.labelStyle,
  this.trailingGap,
  this.buttonMargin,
  this.trailingMovement,
}) : super(key: key);