functionCall static method

String functionCall({
  1. required String name,
  2. List<String> args = const [],
})

Build a javascript function which will be called.

name is the name of the function. args are the arguments passed to the function.

Implementation

static String functionCall({required String name, List<String> args = const []}) =>
    "$name(${args.join(",")});";