Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Sep 26, 2024
1 parent ff4d9e0 commit e3bea0e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bluetooth_flutter_blue/lib/src/flutter_blue_import.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension FlutterBluePlusPrvExt on FlutterBluePlus {
);

Future scanComplete =
FlutterBluePlus.isScanning.where((e) => e == false).first;
FlutterBluePlus.isScanning.where((e) => !e).first;

scanComplete.whenComplete(() {
subscription.cancel();
Expand Down
1 change: 0 additions & 1 deletion bluetooth_server/lib/src/bluetooth_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:tekartik_bluetooth_server/src/constant.dart';
import 'package:tekartik_common_utils/common_utils_import.dart';
import 'package:tekartik_web_socket_io/web_socket_io.dart';

import 'import.dart';

typedef BluetoothServerNotifyCallback = void Function(
bool response, String method, dynamic params);
Expand Down
1 change: 0 additions & 1 deletion bluetooth_server/lib/src/bluetooth_server_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:tekartik_bluetooth_server/src/constant.dart';
import 'package:tekartik_common_utils/common_utils_import.dart';
import 'package:tekartik_web_socket_io/web_socket_io.dart';

import 'import.dart';

class ServerInfo {
bool? isIOS;
Expand Down
2 changes: 1 addition & 1 deletion bluetooth_server_app/lib/page/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class _BluetoothServerHomePageState extends State<BluetoothServerHomePage> {
try {
var server = await app.startServer(port,
notifyCallback: (bool response, String method, dynamic param) {
if (response == false) {
if (!response) {
if (method == methodBluetooth) {
var paramsMap = param as Map;
var bluetoothMethod = paramsMap['method'] as String?;
Expand Down
4 changes: 2 additions & 2 deletions bluetooth_server_app/lib/src/prefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ class Prefs {
}

Future setShowConsole(bool showConsole) async {
this.showConsole = showConsole != false;
this.showConsole = showConsole;
var intValue = this.showConsole ? 1 : 0;
await _setIntValue('showConsole', intValue);
}

Future setAutoStart(bool autoStart) async {
this.autoStart = autoStart == true;
this.autoStart = autoStart;
var intValue = this.autoStart ? 1 : 0;
await _setIntValue('autoStart', intValue);
}
Expand Down

0 comments on commit e3bea0e

Please sign in to comment.