#import <FlutterSpellCheckPlugin.h>
Definition at line 11 of file FlutterSpellCheckPlugin.h.
◆ handleMethodCall:result:
Definition at line 32 of file FlutterSpellCheckPlugin.mm.
39 if (!
self.textChecker) {
43 self.textChecker = [[UITextChecker alloc] init];
45 NSString* method = call.
method;
48 FML_DCHECK(args.count == 2);
49 id language = args[0];
51 if (language == [NSNull
null] || text == [NSNull
null]) {
57 NSArray<NSDictionary<NSString*, id>*>* spellCheckResult =
58 [
self findAllSpellCheckSuggestionsForText:text inLanguage:language];
59 result(spellCheckResult);
void(^ FlutterResult)(id _Nullable result)
static FLUTTER_ASSERT_ARC NSString *const kInitiateSpellCheck
References FlutterMethodCall::arguments, kInitiateSpellCheck, and FlutterMethodCall::method.
The documentation for this class was generated from the following files: