buildDefault method

Widget buildDefault()

Implementation

Widget buildDefault() => buildVideoPlayerBuilder(
      builder: (BuildContext context, AssetEntity asset) {
        if (hasErrorWhenInitializing) {
          return buildInitializationError();
        }
        if (!isLocallyAvailable && !isInitializing) {
          initializeVideoPlayerController();
        }
        if (!hasLoaded) {
          return buildLoader();
        }
        return buildVideoPlayer();
      },
    );