RefreshButton constructor

const RefreshButton({
  1. Key? key,
  2. required Widget text,
  3. void onClicked()?,
  4. Widget? icon,
  5. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  6. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  7. MainAxisSize mainAxisSize = MainAxisSize.max,
  8. VerticalDirection verticalDirection = VerticalDirection.down,
  9. double spacing = 3,
})

Implementation

const RefreshButton({
  super.key,
  required this.text,
  this.onClicked,
  this.icon,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.mainAxisSize = MainAxisSize.max,
  this.verticalDirection = VerticalDirection.down,
  this.spacing = 3,
});