diff --git a/packages/flutter/test/services/haptic_feedback_test.dart b/packages/flutter/test/services/haptic_feedback_test.dart index 6b080678882..9a01f8e4364 100644 --- a/packages/flutter/test/services/haptic_feedback_test.dart +++ b/packages/flutter/test/services/haptic_feedback_test.dart @@ -27,7 +27,7 @@ void main() { log.add(methodCall); }); - await Function.apply(hapticFunction, null); + await hapticFunction(); expect(log, hasLength(1)); expect( log.last,