NERoomUserVideoView constructor Null safety

NERoomUserVideoView(
  1. String userId,
  2. {Key? key,
  3. String? debugName,
  4. NERoomUserVideoViewListener? listener,
  5. bool mirror = false,
  6. NEVideoStreamType? streamType = NEVideoStreamType.kLow,
  7. NERtcVideoViewFitType fitType = NERtcVideoViewFitType.contain,
  8. WidgetBuilder? builder,
  9. Color backgroundColor = const Color(0xFF292933)}
)

正常流

Implementation

NERoomUserVideoView(
  this.userId, {
  Key? key,
  this.debugName,
  this.listener,
  this.mirror = false,
  this.streamType = NEVideoStreamType.kLow,
  this.fitType = NERtcVideoViewFitType.contain,
  this.builder,
  this.backgroundColor = const Color(0xFF292933),
})  : subStream = false,
      super(key: key ?? _UserVideoKey(userId, false));