AsyncCallable.function constructor

  1. String name,
  2. String arguments,
  3. FutureOr<Value> callback(
    1. List<Value> arguments

Creates a callable with the given name and arguments that runs callback when called.

The argument declaration is parsed from arguments, which should not include parentheses. Throws a SassFormatException if parsing fails.

See for more details.


factory AsyncCallable.function(String name, String arguments,
        FutureOr<Value> callback(List<Value> arguments)) =>
    AsyncBuiltInCallable.function(name, arguments, callback);