Skip to content

Commit

Permalink
Code reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
pszklarska committed Mar 1, 2019
1 parent a27e60c commit aa2498a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.0"
version: "0.1.1"
boolean_selector:
dependency: transitive
description:
Expand Down
9 changes: 6 additions & 3 deletions lib/beacon_broadcast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ class BeaconBroadcast {
/// continue running in the foreground to broadcast the needed Bluetooth signals. If the user
/// quits the app, the system stops advertising the device as a peripheral over Bluetooth.
Future<void> start() async {
if (_uuid == null || _uuid.isEmpty || _majorId == null || _minorId == null) {
if (_uuid == null ||
_uuid.isEmpty ||
_majorId == null ||
_minorId == null) {
throw new IllegalArgumentException(
"Illegal arguments! UUID, majorId and minorId must not be null or empty: "
"UUID: $_uuid, majorId: $_majorId, minorId: $_minorId");
Expand Down Expand Up @@ -138,7 +141,6 @@ class BeaconBroadcast {
return _eventChannel.receiveBroadcastStream().cast<bool>();
}


/// Checks if device supports transmission. For iOS it returns always true.
///
/// Possible values (for Android):
Expand All @@ -148,7 +150,8 @@ class BeaconBroadcast {
/// * [BeaconStatus.NOT_SUPPORTED_CANNOT_GET_ADVERTISER] device does not have a compatible chipset
/// or driver
Future<BeaconStatus> checkTransmissionSupported() async {
var isTransmissionSupported = await _methodChannel.invokeMethod('isTransmissionSupported');
var isTransmissionSupported =
await _methodChannel.invokeMethod('isTransmissionSupported');
return fromInt(isTransmissionSupported);
}
}
Expand Down

0 comments on commit aa2498a

Please sign in to comment.