Skip to content

Commit 87473ef

Browse files
remove required keyword
1 parent 6497d24 commit 87473ef

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

flutter_vlc_player_platform_interface/lib/src/method_channel/method_channel_vlc_player.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class MethodChannelVlcPlayer extends VlcPlayerPlatform {
221221
}
222222

223223
@override
224-
Future<void> setLooping({required int viewId, required bool looping}) async {
224+
Future<void> setLooping(int viewId, bool looping) async {
225225
return _api.setLooping(
226226
LoopingMessage()
227227
..viewId = viewId

flutter_vlc_player_platform_interface/lib/src/platform_interface/vlc_player_platform_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ abstract class VlcPlayerPlatform extends PlatformInterface {
8484
}
8585

8686
/// Sets the looping attribute of the video.
87-
Future<void> setLooping({required int viewId, required bool looping}) {
87+
Future<void> setLooping(int viewId, bool looping) {
8888
throw _unimplemented('setLooping');
8989
}
9090

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_audio_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class VlcAudioOptions {
66
/// Enable/Disable time stretching audio
77
/// This allows playing audio at lower or higher speed without affecting
88
/// the audio pitch
9-
static String audioTimeStretch({required bool enable}) {
9+
static String audioTimeStretch(bool enable) {
1010
return enable ? '--audio-time-stretch' : '--no-audio-time-stretch';
1111
}
1212
}

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_http_options.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ class VlcHttpOptions {
55

66
/// Automatically try to reconnect to the stream in case of a sudden disconnect.
77
/// (default disabled)
8-
static String httpReconnect({required bool enable}) {
8+
static String httpReconnect(bool enable) {
99
return enable ? '--http-reconnect' : '--no-http-reconnect';
1010
}
1111

1212
/// Keep reading a resource that keeps being updated.
1313
/// (default disabled)
14-
static String httpContinuous({required bool enable}) {
14+
static String httpContinuous(bool enable) {
1515
return enable ? '--http-continuous' : '--no-http-continuous';
1616
}
1717

1818
/// Forward cookies across HTTP redirections.
1919
/// (default enabled)
20-
static String httpForwardCookies({required bool enable}) {
20+
static String httpForwardCookies(bool enable) {
2121
return enable ? '--http-forward-cookies' : '--no-http-forward-cookies';
2222
}
2323

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_rtp_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class VlcRtpOptions {
44
VlcRtpOptions(this.options);
55

66
/// Use RTP over RTSP (TCP)
7-
static String rtpOverRtsp({required bool enable}) {
7+
static String rtpOverRtsp(bool enable) {
88
return enable ? '--rtsp-tcp' : '--no-rtsp-tcp';
99
}
1010
}

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_subtitle_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class VlcSubtitleOptions {
9393
}
9494

9595
/// Enable/Disable subtitle yuvp renderer
96-
static String yuvpRenderer({required bool enable}) {
96+
static String yuvpRenderer(bool enable) {
9797
return enable ? '--freetype-yuvp' : '--no-freetype-yuvp';
9898
}
9999
}

flutter_vlc_player_platform_interface/lib/src/utils/options/vlc_video_options.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ class VlcVideoOptions {
66
/// Drop late frames
77
/// This drops frames that are late (arrive to the video output after
88
/// their intended display date).
9-
static String dropLateFrames({required bool enable}) {
9+
static String dropLateFrames(bool enable) {
1010
return enable ? '--drop-late-frames' : '--no-drop-late-frames';
1111
}
1212

1313
/// Skip frames
1414
/// Enables framedropping on MPEG2 stream. Framedropping occurs when your
1515
/// computer is not powerful enough
16-
static String skipFrames({required bool enable}) {
16+
static String skipFrames(bool enable) {
1717
return enable ? '--skip-frames' : '--no-skip-frames';
1818
}
1919
}

0 commit comments

Comments
 (0)