VoiceButtonConfig constructor

const VoiceButtonConfig({
  1. Widget? playIcon,
  2. Widget? pauseIcon,
  3. Widget? errorIcon,
  4. Color? buttonColor,
  5. Color? buttonIconColor,
  6. double buttonSize = 40.0,
  7. bool useSimplePlayIcon = false,
  8. double simpleIconSize = 24.0,
})

Implementation

const VoiceButtonConfig({
  this.playIcon,
  this.pauseIcon,
  this.errorIcon,
  this.buttonColor,
  this.buttonIconColor,
  this.buttonSize = 40.0,
  this.useSimplePlayIcon = false,
  this.simpleIconSize = 24.0,
}) : assert(buttonSize > 0, 'buttonSize must be greater than zero'),
     assert(simpleIconSize > 0, 'simpleIconSize must be greater than zero');