File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import 'util.dart';
28
28
/// and then use this for example like:
29
29
///
30
30
/// ```dart
31
- /// expect(inventoryItem, new HasPrice(greaterThan(0)));
31
+ /// expect(inventoryItem, HasPrice(greaterThan(0)));
32
32
/// ```
33
33
class CustomMatcher extends Matcher {
34
34
final String _featureDescription;
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ TypeMatcher<T> isA<T>() => TypeMatcher<T>();
19
19
/// object.
20
20
///
21
21
/// ```dart
22
- /// expect(shouldBeDuration, new TypeMatcher<Duration>());
22
+ /// expect(shouldBeDuration, TypeMatcher<Duration>());
23
23
/// ```
24
24
///
25
25
/// If you want to further validate attributes of the specified [Type] , use the
26
26
/// [having] function.
27
27
///
28
28
/// ```dart
29
29
/// void shouldThrowRangeError(int value) {
30
- /// throw new RangeError.range(value, 10, 20);
30
+ /// throw RangeError.range(value, 10, 20);
31
31
/// }
32
32
///
33
33
/// expect(
You can’t perform that action at this time.
0 commit comments