TranslationButton constructor

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

Implementation

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