ZegoCallAudioEffectConfig class

Configuration options for voice changer, beauty effects and reverberation effects.

This class is used for the ZegoUIKitPrebuiltCallConfig.effect property.

If you want to replace icons and colors to sheet or slider, some of our widgets also provide modification options.

Example:

ZegoCallAudioEffectConfig(
  backgroundColor: Colors.black.withOpacity(0.5),
  backIcon: Icon(Icons.arrow_back),
  sliderTextBackgroundColor: Colors.black.withOpacity(0.5),
);

Constructors

ZegoCallAudioEffectConfig({List<VoiceChangerType> voiceChangeEffect = const [VoiceChangerType.littleGirl, VoiceChangerType.deep, VoiceChangerType.robot, VoiceChangerType.ethereal, VoiceChangerType.littleBoy, VoiceChangerType.female, VoiceChangerType.male, VoiceChangerType.optimusPrime, VoiceChangerType.crystalClear, VoiceChangerType.cMajor, VoiceChangerType.aMajor, VoiceChangerType.harmonicMinor], List<ReverbType> reverbEffect = const [ReverbType.ktv, ReverbType.hall, ReverbType.concert, ReverbType.rock, ReverbType.smallRoom, ReverbType.largeRoom, ReverbType.valley, ReverbType.recordingStudio, ReverbType.basement, ReverbType.popular, ReverbType.gramophone], Color? backgroundColor, TextStyle? headerTitleTextStyle, Widget? backIcon, Widget? resetIcon, Color? selectedIconBorderColor, Color? normalIconBorderColor, TextStyle? selectedTextStyle, TextStyle? normalTextStyle, TextStyle? sliderTextStyle, Color? sliderTextBackgroundColor, Color? sliderActiveTrackColor, Color? sliderInactiveTrackColor, Color? sliderThumbColor, double? sliderThumbRadius})
ZegoCallAudioEffectConfig.none({List<VoiceChangerType> voiceChangeEffect = const [], List<ReverbType> reverbEffect = const []})

Properties

backgroundColor Color?
the background color of the sheet.
getter/setter pair
backIcon Widget?
back button icon on the left side of the title.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerTitleTextStyle TextStyle?
the text style of the head title sheet.
getter/setter pair
isSupportReverb bool
no setter
isSupportVoiceChange bool
no setter
normalIconBorderColor Color?
border color of the icons in the normal (unselected) state.
getter/setter pair
normalIconColor Color?
color of the icons in the normal (unselected) state.
getter/setter pair
normalTextStyle TextStyle?
text-style of buttons in the normal (unselected) state.
getter/setter pair
resetIcon Widget?
reset button icon on the right side of the title.
getter/setter pair
reverbEffect List<ReverbType>
List of revert effects types. If you don't want a certain effect, simply remove it from the list.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIconBorderColor Color?
border color of the icons in the highlighted (selected) state.
getter/setter pair
selectedIconColor Color?
color of the icons in the highlighted (selected) state.
getter/setter pair
selectedTextStyle TextStyle?
text-style of buttons in the highlighted (selected) state.
getter/setter pair
sliderActiveTrackColor Color?
the color of the track that is active when sliding the Slider.
getter/setter pair
sliderInactiveTrackColor Color?
the color of the track that is inactive when sliding the Slider.
getter/setter pair
sliderTextBackgroundColor Color?
the background color of the text displayed on the Slider's thumb.
getter/setter pair
sliderTextStyle TextStyle?
the style of the text displayed on the Slider's thumb
getter/setter pair
sliderThumbColor Color?
the color of the Slider's thumb.
getter/setter pair
sliderThumbRadius double?
the radius of the Slider's thumb.
getter/setter pair
voiceChangeEffect List<VoiceChangerType>
List of voice changer effects. If you don't want a certain effect, simply remove it from the list.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited