SimplePlayerSettings.assets constructor

SimplePlayerSettings.assets({
  1. required String path,
  2. String? label,
  3. double? aspectRatio,
  4. bool? autoPlay,
  5. bool? loopMode,
  6. bool? forceAspectRatio,
  7. Color? colorAccent,
})

Implementation

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