blob: acd36f18c2eb720a57376d9395b5e130f65a1952 [file] [log] [blame]
// Copyright (c) 2025, 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 'package:analyzer_testing/src/mock_packages/mock_library.dart';
final foundationAssertionsLibrary = MockLibraryUnit(
'lib/src/foundation/assertions.dart',
r'''
class FlutterErrorDetails with Diagnosticable {
const FlutterErrorDetails({
required Object exception,
StackTrace? stack,
String? library = 'Flutter framework',
DiagnosticsNode? context,
Iterable<String> Function(Iterable<String>)? stackFilter,
Iterable<DiagnosticsNode> Function()? informationCollector,
bool silent = false,
});
}
class FlutterError extends Error
with DiagnosticableTreeMixin
implements AssertionError {
static void reportError(FlutterErrorDetails details) {}
}
''',
);