startFlow static method

Future<void> startFlow(
  1. String flowId
)

Implementation

static Future<void> startFlow(String flowId) async {
 try {
   Map<String, Object> args = <String, Object>{};
   args.putIfAbsent("flowId", () => flowId);
   print("startFlow ");
   await methodchannel.invokeMethod('startFlow', args);
 }catch(err){
   throw Exception("error occured : ${err.toString()}");
 }
  }