MethodBuilder.media constructor

MethodBuilder.media({
  1. Key? key,
  2. required String route,
  3. required List<String> map,
  4. required String apiUrl,
  5. Image? mediaPreviewBuilder(
    1. List<String> item
    )?,
  6. Future<List<List<String>>>? method,
  7. Encoding? postBody,
  8. double? borderRadius,
  9. double? widthFactor,
  10. IconData? icon,
  11. String? token,
  12. Widget widgetBuilder(
    1. List<String> item
    )?,
  13. BoxDecoration? boxDecoration,
  14. EdgeInsets? padding,
  15. EdgeInsets? margin,
  16. Widget iconBuilder(
    1. List<String> item
    )?,
  17. double? aspectRatio,
  18. Widget topRightLabel(
    1. List<String> item
    )?,
  19. Widget bottomRightLabel(
    1. List<String> item
    )?,
  20. Widget topLeftLabel(
    1. List<String> item
    )?,
  21. Widget timeBuilder(
    1. List<String> item
    )?,
  22. 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,
});