@@ -7,7 +7,6 @@ import 'package:meta/meta.dart';
7
7
import 'callable/async.dart' ;
8
8
import 'callable/built_in.dart' ;
9
9
import 'value.dart' ;
10
- import 'value/external/value.dart' as ext;
11
10
12
11
export 'callable/async.dart' ;
13
12
export 'callable/async_built_in.dart' ;
@@ -67,7 +66,7 @@ export 'callable/user_defined.dart';
67
66
abstract class Callable extends AsyncCallable {
68
67
@Deprecated ('Use `Callable.function` instead.' )
69
68
factory Callable (String name, String arguments,
70
- ext. Value callback (List <ext. Value > arguments)) =>
69
+ Value callback (List <Value > arguments)) =>
71
70
Callable .function (name, arguments, callback);
72
71
73
72
/// Creates a function with the given [name] and [arguments] that runs
@@ -113,7 +112,6 @@ abstract class Callable extends AsyncCallable {
113
112
/// which provides access to keyword arguments using
114
113
/// [SassArgumentList.keywords] .
115
114
factory Callable .function (String name, String arguments,
116
- ext.Value callback (List <ext.Value > arguments)) =>
117
- BuiltInCallable .function (
118
- name, arguments, (arguments) => callback (arguments) as Value );
115
+ Value callback (List <Value > arguments)) =>
116
+ BuiltInCallable .function (name, arguments, callback);
119
117
}
0 commit comments