blob: b0254830b59cec2292f266cd7fa9cfcf66b5b546 [file] [log] [blame]
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 't.dart';
String _defaultStringy(String t) => t.toLowerCase();
class A {
A({double d = 3.14, StringyFunction<String> s = _defaultStringy})
: this.factoryConstructor(d: d, s: s);
A.factoryConstructor({
double d = 3.14,
StringyFunction<String> s = _defaultStringy,
}) : d = d,
_s = s;
String doStringy(String i) => _s(i);
final double d;
final StringyFunction<String> _s;
}