file static method

PlayerMedia<String> file(
  1. String resource, {
  2. Duration? initial,
  3. bool? preload,
})

Implementation

static PlayerMedia<String> file(String resource,
    {Duration? initial, bool? preload}) {
  return PlayerMedia(
    type: PlayerMediaType.file,
    resource: resource,
    preload: preload ?? false,
    initial: initial,
  );
}