scriptFactory function Null safety

JsScript scriptFactory(
  1. {int maxArguments = MAX_ARGUMENTS,
  2. dynamic onUncaughtError(
    1. String
    )?,
  3. List<JsFileSystem> fileSystems = const []}
)

Implementation

JsScript scriptFactory({
  int maxArguments = MAX_ARGUMENTS,
  Function(String)? onUncaughtError,
  List<JsFileSystem> fileSystems = const []
}) {
  return WebJsScript(fileSystems: fileSystems);
}