Unverified Commit bd1a58a9 authored by Konstantin Scheglov's avatar Konstantin Scheglov Committed by GitHub

Add arguments for required parameters. (#63598)

parent 0a7c6243
......@@ -226,6 +226,7 @@ class _GestureTransformableState extends State<GestureTransformable> with Ticker
},
onTapUp: widget.onTapUp == null ? null : (TapUpDetails details) {
widget.onTapUp(TapUpDetails(
kind: details.kind,
globalPosition: fromViewport(details.globalPosition - getOffset(context), _transform),
));
},
......
......@@ -34,6 +34,7 @@ void main() {
config = AutofillConfiguration(
uniqueIdentifier: null,
autofillHints: const <String>['test'],
currentEditingValue: const TextEditingValue(),
);
} catch (e) {
expect(e.toString(), contains('uniqueIdentifier != null'));
......@@ -45,6 +46,7 @@ void main() {
config = AutofillConfiguration(
uniqueIdentifier: 'id',
autofillHints: null,
currentEditingValue: const TextEditingValue(),
);
} catch (e) {
expect(e.toString(), contains('autofillHints != null'));
......@@ -59,6 +61,7 @@ void main() {
const AutofillConfiguration config = AutofillConfiguration(
uniqueIdentifier: 'id',
autofillHints: <String>[],
currentEditingValue: TextEditingValue(),
);
json = config.toJson();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment