Skip to content

Commit 6a47112

Browse files
committed
rename onCancel method
1 parent 852e56f commit 6a47112

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/Classes/ScreenshotDetectorPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ScreenshotDetectorPlugin: NSObject, FlutterPlugin, FlutterStreamHan
1414
}
1515

1616
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
17-
if call.method == "cancelStream" {
17+
if call.method == "dispose" {
1818
onCancel(withArguments: nil)
1919
result(nil)
2020
} else {

0 commit comments

Comments
 (0)