From d1b6466f0767d876fa9be0c58cb4a58c33f8a71e Mon Sep 17 00:00:00 2001 From: Manoj Reddy <62075538+manozzreddy@users.noreply.github.com> Date: Tue, 20 Jul 2021 19:41:00 +0530 Subject: [PATCH 1/3] Update headset_status.dart --- conreality_headset/lib/src/headset_status.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conreality_headset/lib/src/headset_status.dart b/conreality_headset/lib/src/headset_status.dart index c73db6d..f7582d0 100644 --- a/conreality_headset/lib/src/headset_status.dart +++ b/conreality_headset/lib/src/headset_status.dart @@ -7,7 +7,7 @@ import 'headset_type.dart' show HeadsetType; /// Represents the headset device status. class HeadsetStatus extends HeadsetEvent { - HeadsetStatus({@required this.isConnected, this.type = HeadsetType.unknown}); + HeadsetStatus({required this.isConnected, this.type = HeadsetType.unknown}); /// Whether the headset is wireless or wired. final HeadsetType type; From 664a76e56bc088c565b25a6dbc72192576e26741 Mon Sep 17 00:00:00 2001 From: Manoj Reddy <62075538+manozzreddy@users.noreply.github.com> Date: Tue, 20 Jul 2021 19:42:07 +0530 Subject: [PATCH 2/3] Update headset.dart --- conreality_headset/lib/src/headset.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conreality_headset/lib/src/headset.dart b/conreality_headset/lib/src/headset.dart index 2869999..9446a7c 100644 --- a/conreality_headset/lib/src/headset.dart +++ b/conreality_headset/lib/src/headset.dart @@ -27,17 +27,17 @@ abstract class Headset { await _methodChannel.invokeMethod('canSpeak'); /// Plays a PCM file to the headset. - static Future playFile(final String filePath) { + static Future playFile(final String filePath) { return _methodChannel.invokeMethod('playFile', filePath); } /// Synthesizes speech from the contents of [message] for immediate playback. - static Future speak(final String message) { + static Future speak(final String message) { return _methodChannel.invokeMethod('speak', message); } /// Stops any ongoing speech synthesis immediately. - static Future stopSpeaking() { + static Future stopSpeaking() { return _methodChannel.invokeMethod('stopSpeaking'); } From 05eac8cadca1271d0590ae0f7f792b9f7a29fcd4 Mon Sep 17 00:00:00 2001 From: Manoj Reddy <62075538+manozzreddy@users.noreply.github.com> Date: Tue, 20 Jul 2021 19:42:37 +0530 Subject: [PATCH 3/3] Update pubspec.yaml --- conreality_headset/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conreality_headset/pubspec.yaml b/conreality_headset/pubspec.yaml index 560338d..e91612e 100644 --- a/conreality_headset/pubspec.yaml +++ b/conreality_headset/pubspec.yaml @@ -7,7 +7,7 @@ author: Conreality Team homepage: https://github.com/conreality/conreality-plugins/tree/master/conreality_headset environment: - sdk: ">=2.4.0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" flutter: ">=1.7.8 <2.0.0" dependencies: