SocialMediaRecorder constructor

const SocialMediaRecorder({
  1. Widget? sendButtonIcon,
  2. double initRecordPackageWidth = 40,
  3. double fullRecordPackageHeight = 50,
  4. int? maxRecordTimeInSecond,
  5. String? storeSoundRecoringPath = "",
  6. required dynamic sendRequestFunction(
    1. File soundFile,
    2. String time
    ),
  7. dynamic startRecording()?,
  8. dynamic stopRecording(
    1. String time
    )?,
  9. Widget? recordIcon,
  10. Widget? lockButton,
  11. Color? counterBackGroundColor,
  12. Widget? recordIconWhenLockedRecord,
  13. Color? recordIconBackGroundColor = Colors.blue,
  14. Color? recordIconWhenLockBackGroundColor = Colors.blue,
  15. Color? backGroundColor,
  16. TextStyle? cancelTextStyle,
  17. TextStyle? counterTextStyle,
  18. TextStyle? slideToCancelTextStyle,
  19. String? slideToCancelText = " Slide to Cancel >",
  20. String? cancelText = "Cancel",
  21. AudioEncoderType encode = AudioEncoderType.AAC,
  22. Color? cancelTextBackGroundColor,
  23. BorderRadius? radius,
  24. Key? key,
})

Implementation

const SocialMediaRecorder({
  this.sendButtonIcon,
  this.initRecordPackageWidth = 40,
  this.fullRecordPackageHeight = 50,
  this.maxRecordTimeInSecond,
  this.storeSoundRecoringPath = "",
  required this.sendRequestFunction,
  this.startRecording,
  this.stopRecording,
  this.recordIcon,
  this.lockButton,
  this.counterBackGroundColor,
  this.recordIconWhenLockedRecord,
  this.recordIconBackGroundColor = Colors.blue,
  this.recordIconWhenLockBackGroundColor = Colors.blue,
  this.backGroundColor,
  this.cancelTextStyle,
  this.counterTextStyle,
  this.slideToCancelTextStyle,
  this.slideToCancelText = " Slide to Cancel >",
  this.cancelText = "Cancel",
  this.encode = AudioEncoderType.AAC,
  this.cancelTextBackGroundColor,
  this.radius,
  Key? key,
}) : super(key: key);