Mjpeg constructor

const Mjpeg({
  1. Client? httpClient,
  2. bool isLive = false,
  3. double? width,
  4. Duration timeout = const Duration(seconds: 5),
  5. double? height,
  6. BoxFit? fit,
  7. required String stream,
  8. Widget error(
    1. BuildContext contet,
    2. dynamic error,
    3. dynamic stack
    )?,
  9. WidgetBuilder? loading,
  10. Map<String, String> headers = const {},
  11. MjpegPreprocessor? preprocessor,
  12. Key? key,
})

Implementation

const Mjpeg({
  this.httpClient,
  this.isLive = false,
  this.width,
  this.timeout = const Duration(seconds: 5),
  this.height,
  this.fit,
  required this.stream,
  this.error,
  this.loading,
  this.headers = const {},
  this.preprocessor,
  Key? key,
}) : super(key: key);