Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Add assertions
  • Loading branch information
cbracken committed Feb 14, 2024
commit 27ff13b11ab36fad9d1bd23a2426580581824574
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ - (void)handleMethodCall:(nonnull FlutterMethodCall*)call result:(nonnull Flutte

- (void)handleAcceptGesture:(FlutterMethodCall*)call result:(FlutterResult)result {
NSDictionary<NSString*, id>* args = [call arguments];
NSAssert(args && args[@"id"], @"id argument is required");
int64_t viewId = [args[@"id"] longLongValue];
if (_platformViews.count(viewId) == 0) {
result([FlutterError errorWithCode:@"unknown_view"
Expand All @@ -141,6 +142,7 @@ - (void)handleAcceptGesture:(FlutterMethodCall*)call result:(FlutterResult)resul

- (void)handleRejectGesture:(FlutterMethodCall*)call result:(FlutterResult)result {
NSDictionary<NSString*, id>* args = [call arguments];
NSAssert(args && args[@"id"], @"id argument is required");
int64_t viewId = [args[@"id"] longLongValue];
if (_platformViews.count(viewId) == 0) {
result([FlutterError errorWithCode:@"unknown_view"
Expand Down