You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../lib/engine/dokit_binding.dart:129:12: Error: The method 'setMockMessageHandler' isn't defined for the class 'BinaryMessenger'.
- 'BinaryMessenger' is from 'package:flutter/src/services/binary_messenger.dart' ('../../../../fvm/versions/stable/packages/flutter/lib/src/services/binary_messenger.dart').
Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
origin.setMockMessageHandler(channel, handler);
^^^^^^^^^^^^^^^^^^^^^
../lib/engine/dokit_binding.dart:139:52: Error: The argument type 'Future? Function(ByteData?)?' can't be assigned to the parameter type 'Future? Function(ByteData?)' because 'Future? Function(ByteData?)?' is nullable and 'Future? Function(ByteData?)' isn't.
- 'Future' is from 'dart:async'.
- 'ByteData' is from 'dart:typed_data'.
return origin.checkMockMessageHandler(channel, handler);
报错分析:
setMockMessageHandler 和 checkMockMessageHandler 方法迁移
// Looking for setMockMessageHandler or checkMockMessageHandler?
// See this shim package: packages/flutter_test/lib/src/deprecated.dart
报错文件:
lib/engine/dokit_http.dart
报错信息:
error: A value of type 'Future Function(String, int, String, String)?' can't be assigned to a variable of type 'Future Function(String, int, String, String?)?'. (invalid_assignment at [dokit] lib/engine/dokit_http.dart:84)
报错分析:
方法f 类型问题
as转换
origin.authenticateProxy = f as Future Function(String host, int port, String scheme, String? realm)?;
The text was updated successfully, but these errors were encountered:
报错文件:
lib/engine/dokit_binding.dart
报错信息
// Looking for setMockMessageHandler or checkMockMessageHandler?
// See this shim package: packages/flutter_test/lib/src/deprecated.dart
报错文件:
lib/engine/dokit_http.dart
报错信息:
报错分析:
方法f 类型问题
as转换
origin.authenticateProxy = f as Future Function(String host, int port, String scheme, String? realm)?;
The text was updated successfully, but these errors were encountered: