MethodBuilder.media constructor
MethodBuilder.media({
- Key? key,
- required String route,
- required List<
String> map, - required String apiUrl,
- Image? mediaPreviewBuilder()?,
- Future<
List< ? method,List< >String> > - Encoding? postBody,
- double? borderRadius,
- num? widthFactor,
- IconData? icon,
- String? token,
- Widget widgetBuilder()?,
- BoxDecoration? boxDecoration,
- EdgeInsets? padding,
- EdgeInsets? margin,
- Widget iconBuilder()?,
- double? aspectRatio,
- Widget topRightLabel()?,
- Widget bottomRightLabel()?,
- Widget topLeftLabel()?,
- Widget timeBuilder()?,
- WidgetType? type = WidgetType.media,
MethodBuilder.media returns media widget like youtube,ott videos and streams uses Title, Subtitle, Image, Description, Icon and many more
Implementation
MethodBuilder.media({
super.key,
required this.route,
required this.map,
required this.apiUrl,
this.mediaPreviewBuilder,
this.method,
this.postBody,
this.borderRadius,
this.widthFactor,
this.icon,
this.token,
this.widgetBuilder,
this.boxDecoration,
this.padding,
this.margin,
this.iconBuilder,
this.aspectRatio,
this.topRightLabel,
this.bottomRightLabel,
this.topLeftLabel,
this.timeBuilder,
this.type = WidgetType.media,
});