VoiceWidget constructor

const VoiceWidget({
  1. Key? key,
  2. Function? startRecord,
  3. Function? stopRecord,
  4. double? height,
  5. Decoration? decoration,
  6. EdgeInsets? margin,
})

startRecord 开始录制回调 stopRecord回调

Implementation

const VoiceWidget(
    {Key? key,
    this.startRecord,
    this.stopRecord,
    this.height,
    this.decoration,
    this.margin})
    : super(key: key);