PipFlutterPlayer.file constructor

PipFlutterPlayer.file(
  1. String url, {
  2. PipFlutterPlayerConfiguration? pipFlutterPlayerConfiguration,
})

Implementation

factory PipFlutterPlayer.file(
  String url, {
  PipFlutterPlayerConfiguration? pipFlutterPlayerConfiguration,
}) =>
    PipFlutterPlayer(
      controller: PipFlutterPlayerController(
        pipFlutterPlayerConfiguration ??
            const PipFlutterPlayerConfiguration(),
        pipFlutterPlayerDataSource: PipFlutterPlayerDataSource(
            PipFlutterPlayerDataSourceType.file, url),
      ),
    );