AsyncCallable.fromSignature constructor
AsyncCallable.fromSignature(})
Creates a callable with a single signature
and a single callback
.
Throws a SassFormatException if parsing fails.
Implementation
factory AsyncCallable.fromSignature(
String signature, FutureOr<Value> callback(List<Value> arguments),
{bool requireParens = true}) {
var (name, declaration) =
parseSignature(signature, requireParens: requireParens);
return AsyncBuiltInCallable.parsed(name, declaration, callback);
}