VlcPlayerValue.erroneous constructor

VlcPlayerValue.erroneous(
  1. String? errorDescription
)

Returns an instance with the playing state error and the given errorDescription.

Implementation

factory VlcPlayerValue.erroneous(String? errorDescription) {
  return VlcPlayerValue(
    duration: Duration.zero,
    playingState: PlayingState.error,
    isInitialized: false,
    errorDescription: errorDescription ?? VlcPlayerValue.unknownError,
  );
}