MediaRecorderStyle class

MediaRecorderStyle is a model class for customizing the styles of CometChatMediaRecorder widget.

MediaRecorderStyle(
 pauseIconTint: Colors.blue,
 playIconTint: Colors.green,
 closeIconTint: Colors.red,
 timerTextStyle: TextStyle(),
 submitIconTint: Colors.blue,
 startIconTint: Colors.green,
 stopIconTint: Colors.red,
 audioBarTint: Colors.blue,
 width: MediaQuery.of(context).size.width,
 height: 150,
 background: Colors.white,
 border: Border.all(),
 borderRadius: BorderRadius.circular(20),
 gradient: LinearGradient(),
 );
Inheritance

Constructors

MediaRecorderStyle.new({Color? pauseIconTint, Color? playIconTint, Color? closeIconTint, TextStyle? timerTextStyle, Color? submitIconTint, Color? startIconTint, Color? stopIconTint, Color? audioBarTint, double? width, double? height, Color? background, BoxBorder? border, double? borderRadius, Gradient? gradient})

Properties

audioBarTint Color?
audioBarTint provides color to the audio bar
final
background Color?
background provides background color to the widget
finalinherited
border BoxBorder?
border provides border around the widget
finalinherited
borderRadius double?
borderRadius provides radius to the border around the widget
finalinherited
closeIconTint Color?
closeIconTint provides color to the close Icon/widget
final
gradient Gradient?
gradient provides (background) gradient to the widget
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
height provides height to the widget
finalinherited
pauseIconTint Color?
pauseIconTint provides color to the pause Icon/widget
final
playIconTint Color?
playIconTint provides color to the play Icon/widget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIconTint Color?
startIconTint provides color to the start Icon/widget
final
stopIconTint Color?
stopIconTint provides color to the stop Icon/widget
final
submitIconTint Color?
submitIconTint provides color to the submit Icon/widget
final
timerTextStyle TextStyle?
timerTextStyle provides font to the timer text
final
width double?
width provides width to the widget
finalinherited

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