We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d538ae commit 6aaf398Copy full SHA for 6aaf398
pkgs/ffigen/doc/objc_runtime_types.md
@@ -31,10 +31,10 @@ completely irrelevant when doing Objective-C interop.
31
Dart's `is` keyword checks the Dart runtime type. You shouldn't use
32
this on Objective-C objects, because the Dart runtime type is irrelevant, and
33
often won't match the Objective-C runtime type. Instead of `x is Foo`,
34
-use `Foo.isInstance(x)`.
+use `Foo.isA(x)`.
35
36
Dart's `as` keyword changes the static type of an object (and also
37
checks its runtime type). You shouldn't use this on Objective-C objects,
38
because the runtime type check may fail since the Dart runtime
39
type often won't match the Objective-C runtime type. Instead of `x as Foo`,
40
-use `Foo.castFrom(x)`.
+use `Foo.as(x)`.
0 commit comments