FlutterMethodCall

@interface FlutterMethodCall : NSObject

Command object representing a method call on a FlutterMethodChannel.

  • Creates a method call for invoking the specified named method with the specified arguments.

    Declaration

    Objective-C

    + (nonnull instancetype)methodCallWithMethodName:(nonnull NSString *)method
                                           arguments:(id _Nullable)arguments;

    Parameters

    method

    the name of the method to call.

    arguments

    the arguments value.

  • The method name.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull method;
  • The arguments.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) id arguments;