Audio constructor
Audio({
- required String src,
- MediaController? controller,
- String? className,
- Map<
String, dynamic> ? style, - String? id,
- Map<
String, String> ? attributes, - List<
Component> ? children, - List<
String> ? fallback, - String? poster,
- String? alt,
- String? width,
- String? height,
- void onLoad()?,
- void onError()?,
- void onAbort()?,
- String tag = "audio",
- List<
MediaControl> ? controls = MediaControl.values, - bool autoPlay = false,
- bool loop = false,
- bool muted = false,
- bool playsInline = false,
- bool showControls = true,
Audio component.
The src
parameter is used to determine the source of the audio.
Implementation
Audio({
required super.src,
this.controller,
super.className,
super.style,
super.id,
super.attributes,
super.children,
super.fallback,
super.poster,
super.alt,
super.width,
super.height,
super.onLoad,
super.onError,
super.onAbort,
super.tag = "audio",
this.controls = MediaControl.values,
this.autoPlay = false,
this.loop = false,
this.muted = false,
this.playsInline = false,
this.showControls = true,
});