TranslationButton constructor

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

Implementation

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