blob: ce8605a15b4805d0bd4cb4409e5fb2792ab40cd5 [file] [log] [blame]
// Copyright 2021 The Flutter Authors. 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:test/test.dart';
Matcher throwsExceptionWith<T>(String messageSubString) {
return throwsA(
isA<T>().having(
(T e) => e.toString(),
'description',
contains(messageSubString),
),
);
}