SimplePlayerSettings.assets constructor

SimplePlayerSettings.assets({
  1. required String path,
  2. String? label = '',
  3. double? aspectRatio = 16 / 9,
  4. bool? autoPlay = false,
  5. bool? loopMode = false,
  6. bool? forceAspectRatio = false,
  7. Color? colorAccent = Colors.red,
})

Implementation

factory SimplePlayerSettings.assets(
    {required String path,
    String? label = '',
    double? aspectRatio = 16 / 9,
    bool? autoPlay = false,
    bool? loopMode = false,
    bool? forceAspectRatio = false,
    Color? colorAccent = Colors.red}) {
  return SimplePlayerSettings(
    type: 'assets',
    path: path,
    label: label,
    aspectRatio: aspectRatio,
    autoPlay: autoPlay,
    loopMode: loopMode,
    forceAspectRatio: forceAspectRatio,
    colorAccent: colorAccent,
  );
}