TranslationButton constructor

const TranslationButton({
  1. Key? key,
  2. String reason = "bottom_sheet",
  3. String? name,
  4. bool ignorePointer = false,
  5. BoxDecoration? decoration,
  6. EdgeInsets? padding,
  7. TranslationButtonType type = TranslationButtonType.flagAndCode,
  8. bool markAsDefault = false,
  9. TextStyle? textStyle,
  10. Widget builder(
    1. BuildContext context,
    2. String text
    )?,
  11. ValueChanged<Locale>? onChanged,
})

Implementation

const TranslationButton({
  super.key,
  this.reason = "bottom_sheet",
  this.name,
  this.ignorePointer = false,
  this.decoration,
  this.padding,
  this.type = TranslationButtonType.flagAndCode,
  this.markAsDefault = false,
  this.textStyle,
  this.builder,
  this.onChanged,
});