Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/android_alarm_manager/lib/android_alarm_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ void _alarmManagerCallbackDispatcher() {
exit(-1);
}

// ignore: inference_failure_on_function_return_type
if (closure is Function()) {
closure();
// ignore: inference_failure_on_function_return_type
} else if (closure is Function(int)) {
final int id = args[1];
closure(id);
Expand Down Expand Up @@ -182,6 +184,7 @@ class AndroidAlarmManager {
bool wakeup = false,
bool rescheduleOnReboot = false,
}) async {
// ignore: inference_failure_on_function_return_type
assert(callback is Function() || callback is Function(int));
assert(id.bitLength < 32);
final int startMillis = time.millisecondsSinceEpoch;
Expand Down Expand Up @@ -245,6 +248,7 @@ class AndroidAlarmManager {
bool wakeup = false,
bool rescheduleOnReboot = false,
}) async {
// ignore: inference_failure_on_function_return_type
assert(callback is Function() || callback is Function(int));
assert(id.bitLength < 32);
final int now = DateTime.now().millisecondsSinceEpoch;
Expand Down
1 change: 1 addition & 0 deletions packages/camera/lib/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ enum ResolutionPreset {
max,
}

// ignore: inference_failure_on_function_return_type
typedef onLatestImageAvailable = Function(CameraImage image);

/// Returns the resolution preset as a String.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ class GooglePlayConnection
} on PlatformException catch (e) {
exception = e;
responses = [
// ignore: invalid_use_of_visible_for_testing_member
SkuDetailsResponseWrapper(
responseCode: BillingResponse.error, skuDetailsList: []),
// ignore: invalid_use_of_visible_for_testing_member
SkuDetailsResponseWrapper(
responseCode: BillingResponse.error, skuDetailsList: [])
];
Expand Down