p-hatan/ mirror

pub repository

mirror.p-hatan.ir

mockito

5.0.6

A mock framework inspired by Mockito.

Download archive

Readme

mockito

Mock library for Dart inspired by Mockito.

Pub Build Status

Let's create mocks

Mockito 5.0.0 supports Dart's new null safety language feature in Dart 2.12, primarily with code generation.

To use Mockito's generated mock classes, add a build_runner dependency in your package's pubspec.yaml file, under dev_dependencies; something like build_runner: ^1.11.0.

For alternatives to the code generation API, see the NULL_SAFETY_README.

Let's start with a Dart library, cat.dart:

import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'cat.mocks.dart';

// Real class
class Cat {
  String sound() => "Meow";
  bool eatFood(String food, {bool? hungry}) => true;
  Future<void> chew() async => print("Chewing...");
  int walk(List<String> places) => 7;
  void sleep() {}
  void hunt(String place, String prey) {}
  int lives = 9;
}

// Annotation which generates the cat.mocks.dart library and the MockCat class.
@GenerateMocks([Cat])
void main() {
  // Create mock object.
  var cat = MockCat();
}

By annotating a library element (such as a test file's main function, or a class) with @GenerateMocks, you are directing Mockito's code generation to write a mock class for each "real" class listed, in a new library.

The next step is to run build_runner in order to generate this new library:

dart run build_runner build

build_runner will generate a file with a name based on the file containing the @GenerateMocks annotation. In the above cat.dart example, we import the generated library as cat.mocks.dart.

The generated mock class, MockCat, extends Mockito's Mock class and implements the Cat class, giving us a class which supports stubbing and verifying.

Let's verify some behavior!

// Interact with the mock object.
cat.sound();
// Verify the interaction.
verify(cat.sound());

Once created, the mock instance will remember all interactions. Then you can selectively verify (or verifyInOrder, or verifyNever) the interactions you are interested in.

How about some stubbing?

// Stub a mock method before interacting.
when(cat.sound()).thenReturn("Purr");
expect(cat.sound(), "Purr");

// You can call it again.
expect(cat.sound(), "Purr");

// Let's change the stub.
when(cat.sound()).thenReturn("Meow");
expect(cat.sound(), "Meow");

// You can stub getters.
when(cat.lives).thenReturn(9);
expect(cat.lives, 9);

// You can stub a method to throw.
when(cat.lives).thenThrow(RangeError('Boo'));
expect(() => cat.lives, throwsRangeError);

// We can calculate a response at call time.
var responses = ["Purr", "Meow"];
when(cat.sound()).thenAnswer((_) => responses.removeAt(0));
expect(cat.sound(), "Purr");
expect(cat.sound(), "Meow");

The when, thenReturn, thenAnswer, and thenThrow APIs provide a stubbing mechanism to override this behavior. Once stubbed, the method will always return stubbed value regardless of how many times it is called. If a method invocation matches multiple stubs, the one which was declared last will be used.

A quick word on async stubbing

Using thenReturn to return a Future or Stream will throw an ArgumentError. This is because it can lead to unexpected behaviors. For example:

  • If the method is stubbed in a different zone than the zone that consumes the Future, unexpected behavior could occur.
  • If the method is stubbed to return a failed Future or Stream and it doesn't get consumed in the same run loop, it might get consumed by the global exception handler instead of an exception handler the consumer applies.

Instead, use thenAnswer to stub methods that return a Future or Stream.

// BAD
when(mock.methodThatReturnsAFuture())
    .thenReturn(Future.value('Stub'));
when(mock.methodThatReturnsAStream())
    .thenReturn(Stream.fromIterable(['Stub']));

// GOOD
when(mock.methodThatReturnsAFuture())
    .thenAnswer((_) async => 'Stub');
when(mock.methodThatReturnsAStream())
    .thenAnswer((_) => Stream.fromIterable(['Stub']));

If, for some reason, you desire the behavior of thenReturn, you can return a pre-defined instance.

// Use the above method unless you're sure you want to create the Future ahead
// of time.
final future = Future.value('Stub');
when(mock.methodThatReturnsAFuture()).thenAnswer((_) => future);

Argument matchers

Mockito provides the concept of the "argument matcher" (using the class ArgMatcher) to capture arguments and to track how named arguments are passed. In most cases, both plain arguments and argument matchers can be passed into mock methods:

// You can use plain arguments themselves
when(cat.eatFood("fish")).thenReturn(true);

// ... including collections
when(cat.walk(["roof","tree"])).thenReturn(2);

// ... or matchers
when(cat.eatFood(argThat(startsWith("dry")))).thenReturn(false);
when(cat.eatFood(any)).thenReturn(false);

// ... or mix aguments with matchers
when(cat.eatFood(argThat(startsWith("dry")), hungry: true)).thenReturn(true);
expect(cat.eatFood("fish"), isTrue);
expect(cat.walk(["roof","tree"]), equals(2));
expect(cat.eatFood("dry food"), isFalse);
expect(cat.eatFood("dry food", hungry: true), isTrue);

// You can also verify using an argument matcher.
verify(cat.eatFood("fish"));
verify(cat.walk(["roof","tree"]));
verify(cat.eatFood(argThat(contains("food"))));

// You can verify setters.
cat.lives = 9;
verify(cat.lives=9);

If an argument other than an ArgMatcher (like any, anyNamed, argThat, captureThat, etc.) is passed to a mock method, then the equals matcher is used for argument matching. If you need more strict matching consider use argThat(identical(arg)).

However, note that null cannot be used as an argument adjacent to ArgMatcher arguments, nor as an un-wrapped value passed as a named argument. For example:

verify(cat.hunt("backyard", null)); // OK: no arg matchers.
verify(cat.hunt(argThat(contains("yard")), null)); // BAD: adjacent null.
verify(cat.hunt(argThat(contains("yard")), argThat(isNull))); // OK: wrapped in an arg matcher.
verify(cat.eatFood("Milk", hungry: null)); // BAD: null as a named argument.
verify(cat.eatFood("Milk", hungry: argThat(isNull))); // BAD: null as a named argument.

Named arguments

Mockito currently has an awkward nuisance to its syntax: named arguments and argument matchers require more specification than you might think: you must declare the name of the argument in the argument matcher. This is because we can't rely on the position of a named argument, and the language doesn't provide a mechanism to answer "Is this element being used as a named element?"

// GOOD: argument matchers include their names.
when(cat.eatFood(any, hungry: anyNamed('hungry'))).thenReturn(true);
when(cat.eatFood(any, hungry: argThat(isNotNull, named: 'hungry'))).thenReturn(false);
when(cat.eatFood(any, hungry: captureAnyNamed('hungry'))).thenReturn(false);
when(cat.eatFood(any, hungry: captureThat(isNotNull, named: 'hungry'))).thenReturn(true);

// BAD: argument matchers do not include their names.
when(cat.eatFood(any, hungry: any)).thenReturn(true);
when(cat.eatFood(any, hungry: argThat(isNotNull))).thenReturn(false);
when(cat.eatFood(any, hungry: captureAny)).thenReturn(false);
when(cat.eatFood(any, hungry: captureThat(isNotNull))).thenReturn(true);

Verifying exact number of invocations / at least x / never

Use verify or verifyNever:

cat.sound();
cat.sound();

// Exact number of invocations
verify(cat.sound()).called(2);

// Or using matcher
verify(cat.sound()).called(greaterThan(1));

// Or never called
verifyNever(cat.eatFood(any));

Verification in order

Use verifyInOrder:

cat.eatFood("Milk");
cat.sound();
cat.eatFood("Fish");
verifyInOrder([
  cat.eatFood("Milk"),
  cat.sound(),
  cat.eatFood("Fish")
]);

Verification in order is flexible - you don't have to verify all interactions one-by-one but only those that you are interested in testing in order.

Making sure interaction(s) never happened on mock

Use verifyZeroInteractions:

verifyZeroInteractions(cat);

Finding redundant invocations

Use verifyNoMoreInteractions:

cat.sound();
verify(cat.sound());
verifyNoMoreInteractions(cat);

Capturing arguments for further assertions

Use the captureAny, captureThat, and [captureNamed] argument matchers:

// Simple capture
cat.eatFood("Fish");
expect(verify(cat.eatFood(captureAny)).captured.single, "Fish");

// Capture multiple calls
cat.eatFood("Milk");
cat.eatFood("Fish");
expect(verify(cat.eatFood(captureAny)).captured, ["Milk", "Fish"]);

// Conditional capture
cat.eatFood("Milk");
cat.eatFood("Fish");
expect(verify(cat.eatFood(captureThat(startsWith("F")))).captured, ["Fish"]);

Waiting for an interaction

Use untilCalled:

// Waiting for a call.
cat.eatFood("Fish");
await untilCalled(cat.chew()); // Completes when cat.chew() is called.

// Waiting for a call that has already happened.
cat.eatFood("Fish");
await untilCalled(cat.eatFood(any)); // Completes immediately.

Writing a fake

You can also write a simple fake class that implements a real class, by extending Fake. Fake allows your subclass to satisfy the implementation of your real class, without overriding the methods that aren't used in your test; the Fake class implements the default behavior of throwing UnimplementedError (which you can override in your fake class):

// Fake class
class FakeCat extends Fake implements Cat {
  @override
  bool eatFood(String food, {bool? hungry}) {
    print('Fake eat $food');
    return true;
  }
}

void main() {
  // Create a new fake Cat at runtime.
  var cat = FakeCat();

  cat.eatFood("Milk"); // Prints 'Fake eat Milk'.
  cat.sleep(); // Throws.
}

Resetting mocks

Use reset:

// Clearing collected interactions:
cat.eatFood("Fish");
clearInteractions(cat);
cat.eatFood("Fish");
verify(cat.eatFood("Fish")).called(1);

// Resetting stubs and collected interactions:
when(cat.eatFood("Fish")).thenReturn(true);
cat.eatFood("Fish");
reset(cat);
when(cat.eatFood(any)).thenReturn(false);
expect(cat.eatFood("Fish"), false);

Debugging

Use logInvocations and throwOnMissingStub:

// Print all collected invocations of any mock methods of a list of mock objects:
logInvocations([catOne, catTwo]);

// Throw every time that a mock method is called without a stub being matched:
throwOnMissingStub(cat);

Best Practices

Testing with real objects is preferred over testing with mocks - if you can construct a real instance for your tests, you should! If there are no calls to verify in your test, it is a strong signal that you may not need mocks at all, though it's also OK to use a Mock like a stub. When it's not possible to use the real object, a tested implementation of a fake is the next best thing - it's more likely to behave similarly to the real class than responses stubbed out in tests. Finally an object which extends Fake using manually overridden methods is preferred over an object which extends Mock used as either a stub or a mock.

A class which extends Mock should never stub out it's own responses with when in it's constructor or anywhere else. Stubbed responses should be defined in the tests where they are used. For responses controlled outside of the test use @override methods for either the entire interface, or with extends Fake to skip some parts of the interface.

Similarly, a class which extends Mock should never have any @override methods. These can't be stubbed by tests and can't be tracked and verified by Mockito. A mix of test defined stubbed responses and mock defined overrides will lead to confusion. It is OK to define static utilities on a class which extends Mock if it helps with code structure.

Frequently asked questions

Read more information about this package in the FAQ.

Changelog

5.0.6

  • Support the 0.4.x releases of test_api.

5.0.5

  • Support 4.x releases of code_builder.

5.0.4

  • Allow calling methods with void return types w/o stubbing. #367
  • Add type argument to dummy Future return value. #380

5.0.3

  • Support 1.x releases of source_gen.

5.0.2

  • Support the latest build packages and dart_style.

5.0.1

  • Update to the latest test_api.
  • Fix mock generation of type which has a supertype which mixes in a mixin.
  • Fix mock generation of method which returns a non-nullable generic function type.

5.0.0

  • verifyInOrder now returns a List<VerificationResult> which stores arguments which were captured in a call to verifiyInOrder.
  • Breaking change: Remove the public constructor for VerificationResult.
  • Doesn't allow verify been used inside the verifyInOrder.

5.0.0-nullsafety.7

  • Fix generation of duplicate mock getters and setters from inherited classes.

5.0.0-nullsafety.6

  • Fix generation of method with a parameter with a default value which includes a top-level function.
  • Migrate example code to null safety.
  • Breaking change: Change the error which is thrown if a method is called and no method stub was found, from NoSuchMethodError to MissingStubError.
  • Breaking change: Mock.noSuchMethod's optional positional parameter, "returnValue" is changed to a named parameter, and a second named parameter is added. Any manual mocks which call Mock.noSuchMethod with a second positional argument will need to instead use the named parameter.
  • Allow real calls to mock methods which return void (like setters) or Future<void>, even if unstubbed.

5.0.0-nullsafety.5

  • Fix noSuchMethod invocation of setters in generated mocks.

5.0.0-nullsafety.4

  • Annotate overridden getters and setters with @override.

5.0.0-nullsafety.3

  • Improve static analysis of generated code.
  • Make implicit casts from dynamic in getters explicit.

5.0.0-nullsafety.2

  • Fix issue with generated code which references a class declared in a part (#310).

5.0.0-nullsafety.1

  • Fix an issue with generated mocks overriding methods from Object, such as operator == (#306).
  • Fix an issue with relative imports in generated mocks.

5.0.0-nullsafety.0

  • Migrate the core libraries and tests to null safety. The builder at lib/src/builder.dart opts out of null safety.
  • Add http back to dev_dependencies. It's used by the example.
  • Remove deprecated typed, typedArgThat, and typedCaptureThat APIs.

4.1.3

  • Allow using analyzer 0.40.
  • throwOnMissingStub accepts an optional argument, exceptionBuilder, which will be called to build and throw a custom exception when a missing stub is called.

4.1.2

  • Introduce experimental code-generated mocks. This is primarily to support the new "Non-nullable by default" (NNBD) type system coming soon to Dart.
  • Add an optional second parameter to Mock.noSuchMethod. This may break clients who use the Mock class in unconventional ways, such as overriding noSuchMethod on a class which extends Mock. To fix, or prepare such code, add a second parameter to such overriding noSuchMethod declaration.
  • Increase minimum Dart SDK to 2.7.0.
  • Remove Fake class; export identical Fake class from the test_api package.

4.1.1

  • Mark the unexported and accidentally public setDefaultResponse as deprecated.
  • Mark the not useful, and not generally used, named function as deprecated.
  • Produce a meaningful error message if an argument matcher is used outside of stubbing (when) or verification (verify and untilCalled).

4.1.0

  • Add a Fake class for implementing a subset of a class API as overrides without misusing the Mock class.

4.0.0

  • Replace the dependency on the test package with a dependency on the new test_api package. This dramatically reduces mockito's transitive dependencies.

    This bump can result in runtime errors when coupled with a version of the test package older than 1.4.0.

3.0.2

  • Rollback the test_api part of the 3.0.1 release. This was breaking tests that use Flutter's current test tools, and will instead be released as part of Mockito 4.0.0.

3.0.1

  • Replace the dependency on the test package with a dependency on the new test_api package. This dramatically reduces mockito's transitive dependencies.
  • Internal improvements to tests and examples.

3.0.0

  • Deprecate the typed API; instead of wrapping other Mockito API calls, like any, argThat, captureAny, and captureArgThat, with a call to typed, the regular API calls are to be used by themselves. Passing any and captureAny as named arguments must be replaced with anyNamed() and captureAnyNamed, respectively. Passing argThat and captureThat as named arguments must include the named parameter.

  • Introduce a backward-and-forward compatible API to help users migrate to Mockito 3. See more details in the upgrading-to-mockito-3 doc.

  • thenReturn now throws an ArgumentError if either a Future or Stream is provided. thenReturn calls with futures and streams should be changed to thenAnswer. See the README for more information.

  • Support stubbing of void methods in Dart 2.

  • thenReturn and thenAnswer now support generics and infer the correct types from the when call.

  • Completely remove the mirrors implementation of Mockito (mirrors.dart).

  • Fix compatibility with new noSuchMethod Forwarding feature of Dart 2. This is thankfully a mostly backwards-compatible change. This means that this version of Mockito should continue to work:

    • with Dart >=2.0.0-dev.16.0,
    • with Dart 2 runtime semantics (i.e. with dart --preview-dart-2, or with Flutter Beta 3), and
    • with the new noSuchMethod Forwarding feature, when it lands in CFE, and when it lands in DDC.

    This change, when combined with noSuchMethod Forwarding, will break a few code paths which do not seem to be frequently used. Two examples:

    class A {
      int fn(int a, [int b]) => 7;
    }
    class MockA extends Mock implements A {}
    
    var a = new MockA();
    when(a.fn(typed(any), typed(any))).thenReturn(0);
    print(a.fn(1));
    

    This used to print null, because only one argument was passed, which did not match the two-argument stub. Now it will print 0, as the real call contains a value for both the required argument, and the optional argument.

    a.fn(1);
    a.fn(2, 3);
    print(verify(a.fn(typed(captureAny), typed(captureAny))).captured);
    

    This used to print [2, 3], because only the second call matched the verify call. Now, it will print [1, null, 2, 3], as both real calls contain a value for both the required argument, and the optional argument.

  • Upgrade package dependencies.

  • Throw an exception when attempting to stub a method on a Mock object that already exists.

2.2.0

  • Add new feature to wait for an interaction: untilCalled. See the README for documentation.
  • capture* calls outside of a verify* call no longer capture arguments.
  • Some collections require stricter argument matching. For example, a stub like: mock.methodWithListArgs([1,2,3].map((e) => e*2)) (note the Iterable argument) will no longer match the following stub: when(mock.methodWithListArgs([42])).thenReturn(7);.

2.1.0

  • Add documentation for when, verify, verifyNever, resetMockitoState.
  • Expose throwOnMissingStub, resetMockitoState.
  • Improve failure message for verify.
  • SDK version ceiling bumped to <2.0.0-dev.infinity to support Dart 2.0 development testing.
  • Add a Mockito + test package example at test/example/iss.

2.0.2

  • Start using the new InvocationMatcher instead of the old matcher.
  • Change throwOnMissingStub back to invoking Object.noSuchMethod:
    • It was never documented what the thrown type should be expected as.
    • You can now just rely on throwsNoSuchMethodError if you want to catch it.

2.0.1

  • Add a new throwOnMissingStub method to the API.

2.0.0

  • Removed mockito_no_mirrors.dart

2.0.0-dev

  • Remove export of spy and any dart:mirrors based API from mockito.dart. Users may import as package:mockito/mirrors.dart going forward.
  • Deprecated mockito_no_mirrors.dart; replace with mockito.dart.
  • Require Dart SDK >=1.21.0 <2.0.0 to use generic methods.

1.0.1

  • Add a new thenThrow method to the API.
  • Document thenAnswer in the README.
  • Add more dartdoc.

1.0.0

  • Add a new typed API that is compatible with Dart Dev Compiler; documented in README.md.

0.11.1

  • Move the reflection-based spy code into a private source file. Now package:mockito/mockito.dart includes this reflection-based API, and a new package:mockito/mockito_no_mirrors.dart doesn't require mirrors.

0.11.0

  • Equality matcher used by default to simplify matching collections as arguments. Should be non-breaking change in most cases, otherwise consider using argThat(identical(arg)).

0.10.0

  • Added support for spy.

0.9.0

  • Migrate from the unittest package to use the new test package.
  • Format code using dartformat

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add mockito
pubspec.yaml
name: mockito
version: 5.0.6

description: A mock framework inspired by Mockito.
homepage: https://github.com/dart-lang/mockito

environment:
  sdk: '>=2.12.0-0 <3.0.0'

dependencies:
  analyzer: ^1.0.0
  build: '>=1.3.0 <3.0.0'
  code_builder: '>=3.7.0 <5.0.0'
  collection: ^1.15.0
  dart_style: '>=1.3.6 <3.0.0'
  matcher: ^0.12.10
  meta: ^1.3.0
  path: ^1.8.0
  source_gen: '>=0.9.6 <2.0.0'
  test_api: '>=0.2.1 <0.5.0'

dev_dependencies:
  build_runner: ^1.12.0
  build_test: ^2.0.0
  build_web_compilers: '>=1.0.0 <3.0.0'
  http: ^0.13.0
  package_config: '>=1.9.3 <3.0.0'
  pedantic: ^1.10.0
  test: ^1.16.0

Version history

VersionPublishedArchiveSHA-256
0.8.02014-07-14T11:58:32.728020ZDownload7d2e4d89f049e17d2980827e773c59ff1f48182df7a5e2f6e10497ed79d8e9c0
0.8.12014-07-18T20:51:06.435860ZDownloade9d7d9088322924701a71161a1c5e6cab63d2ab78cd9b1dc6deefb7fdf9430fd
0.8.22015-01-29T10:24:59.006460ZDownload196a9047b8c52f1432788c6fc2b3cb079797b727192714329afc75395bd3e7d0
0.9.02015-05-11T01:12:56.838310ZDownloadce58fcc1dac197fde30deae04b514bc24b0ebe7e54837309492eea2c8d60628f
0.10.02015-05-13T02:44:02.936620ZDownload6ba827bb4e49f0060451b4deef06b061c5b3ee13fb5a641a9a302f3a0122c4ce
0.10.12015-05-13T03:26:42.060190ZDownloadfced59ba8cf465662c3af22897ac772190013ebfc7dcb66cfcfb2189ce4cd4d5
0.11.02015-09-14T03:59:58.190ZDownload924ee76c46acfe71cca660625fa614ed0f571f99a0e6099d183b74c552315ab0
1.0.02016-08-05T20:30:14.430ZDownload84e5eae0d2b00f79d30a1ef4ac35d48489436f97f1d972acd5bb73f3ccb1ea7e
1.0.12016-09-28T00:53:35.009ZDownload54ea01ed42301b31d2b83f3e59e648ee049d1e2959959cee2f7dc4914d3482a4
2.0.22017-03-10T18:34:00.874ZDownloada94fe933e4af8282440701601be17215f67736d4af3de8a709bcffb8f97f376b
2.1.02017-07-31T22:13:21.528466ZDownload5b2937c68ff78c4645068eb79b0b85e6d32225d1655f0d0223c1b2a893f5121a
2.2.02017-08-15T22:56:09.689177ZDownloadd4e9344b384cb50f7956333c3629d7009df52a1eefac4e31ecc3485626951909
2.2.1-dev2017-11-06T19:55:46.514563ZDownload8aabdd05e076fedaf8af1764a4b5cdc472c5e8c70eacce0874f41891defd758b
2.2.12017-11-16T22:12:06.976308ZDownload6c852cff88bc53f3225ffe2d08ad9aa1616ff7b87bc4fbb951d9c777a75e1b1d
2.2.22018-02-09T05:43:22.783569ZDownloadcb4ef13692ecf339a6924984c6364d5c5421997741e59b2440409d94a91ef5e4
2.2.32018-02-12T01:14:34.526688ZDownload7761e04c9d144662eb7b5ae2519367365d8feeb1b3f48487affd50a1fdb2b4c4
3.0.0-alpha2017-12-13T23:04:40.474705ZDownload29da3f4157cb03599bf079e29ef5b91b7e01a5d815cedabe4692aba33a9a5bd9
3.0.0-alpha+22018-03-26T20:53:29.517184ZDownload8285ef9df3bccd5f81487fdd786900c1574071931eb9405b770a345ae343ca31
3.0.0-alpha+32018-04-05T23:31:03.896650ZDownload2616af6184bebb4cec6e2516f46a66a147107016a35a073d069d3f55b2d1a55e
3.0.0-alpha+42018-04-18T21:10:29.571149ZDownload9da116336b833fcb3d8a8f3cb651ee70d20c0ff254f320f74f6f4a9b965c64f4
3.0.0-alpha+52018-05-09T18:57:16.911153ZDownload1a1e2d70321da453448a725dd0879e136db8f20f104e80e293697b8da5054d5d
3.0.0-beta2018-05-16T23:13:11.594982ZDownload6265cca791ced698184f5df5ac6734f2e25ec60944c2a530ebf0351d60ece244
3.0.0-beta+12018-06-22T20:27:54.497906ZDownloadeca63346f7450f8ce5fae990a17ed625d049e653e643d5a21417789d4fc0bf4a
3.0.0-beta+22018-07-12T13:54:30.428213ZDownload4fc99832af9ab96dfae197f740a1306a4f4d643d35eb707e8216bdbba828af2f
3.0.0-beta+32018-07-15T18:09:53.723342ZDownloada6f5fbb8ed84dc9a967f7e95e8478a92ec63230e01f28f9d95dbf718f5fc630b
3.0.02018-07-24T18:54:45.141776ZDownload2f99f2c7702de0d10098a99d193b0f2453bb421dd3dae3da3c12b529725ead15
3.0.12018-11-01T16:29:41.655294ZDownloadd3afcc55f1ef6265746c03cd0e6737559f518b5cc4b244a3ada5f009019cf7d1
3.0.22018-11-05T18:48:00.289722ZDownload4a1db581922c044a29d44b5f2836c897985f901b826325cf7ebd9fcccd159492
4.0.02018-11-06T00:39:47.797532ZDownloadb5b6e590c8be0bc701ed4bcb9631c0cf52933feecfe88528b07661fedaade5c3
4.1.02019-05-31T16:28:17.014246ZDownloade97166873d3335664c5a045884d50cc4be0a32f0b6afebc347bb7b803558e7ea
4.1.12019-09-04T19:57:07.516567ZDownload4c1616e17a9b305e0054f0e6304e1967f752948eb56de73c799af158695c5cbe
4.1.1+12021-03-11T17:51:09.485921ZDownload3885b534ee40276f15d69b9b629cf02cf5178de3c297319961eee3fdf45e2b4f
4.1.22020-08-28T00:18:05.278962ZDownloadb46b7541d6c8b8e2cff7cb7942ff26cf2af06e2e9ee85d601f3def08f9916d60
4.1.32020-10-21T22:34:04.506652ZDownload32a07780f79c93c90d9b1fbe63196dcec3504514790f21b40766b847975c51ee
4.1.42021-01-26T01:51:20.019954ZDownload91ce85f435487ba5900b7e8cd403266c77b4633a2a994d04bb47f0a6fc65fcd8
5.0.0-nullsafety.02020-12-22T18:01:45.183113ZDownload1b3297247437a09278d5b80bc1f3197d95e7125c7e3576dfa7b0aa96480daed7
5.0.0-nullsafety.12020-12-30T20:51:52.282910ZDownloadd48b42c0d7391e4260549d834b466fe7127be457420dd437da48d05e3d8354e5
5.0.0-nullsafety.22021-01-12T19:11:03.255676ZDownload3004d87e2cf3538f477d8e22720df036c650945be34d8cf6c1b09d6ae332dea9
5.0.0-nullsafety.32021-01-14T14:20:25.741038ZDownload1dde7966310f8351c50a5655392f2c0da4ebcbbc4b304df789206b400cc9e90b
5.0.0-nullsafety.42021-01-18T03:55:13.148946ZDownload85fb0ac70ecb324865d4ded7d7fe6405718e2e056487319da6d5c8e0b4720a61
5.0.0-nullsafety.52021-01-22T20:52:51.311234ZDownloadf05c235a9d3b0f9a028beaaf799a8c19da7327bfe86f04a755050afa84b7d6ee
5.0.0-nullsafety.62021-02-03T22:50:16.623303ZDownload70a9ea9925419dc97acb95d887da5f755f28e63d1c007b1d38779e509596a9d0
5.0.0-nullsafety.72021-02-04T20:58:37.455071ZDownload8a771cc99ffe1dc519e8f0231ab52aff61b43d2af43b4808a39778392a356c2a
5.0.02021-02-23T22:41:29.906159ZDownload4e44306b7710999181fdb4b789f3373768b2f6c440d37f198f7eff640e7baa37
5.0.12021-03-12T16:13:47.569866ZDownload3d289e0dc83d542c76b8406c72e978b4cefb1a6d2586c1469d02b36ac848889e
5.0.22021-03-17T21:52:43.957073ZDownloadc08c2a3c5adc02b1d9286a8954d045bbfb624bc419fc59331c6d97f6e612fffc
5.0.32021-03-25T20:25:54.581628ZDownload0c90f7d828cfb473b5efe9e276d40d4c3d2552bb5677cbcac255f53b1cabdee7
5.0.42021-04-12T19:15:08.380264ZDownload2a257fa0af31f009ea355e4139354a1a39622112e717ccc8c265df228705a0fc
5.0.52021-04-20T00:52:32.061051ZDownload81191e95800771a66fb3dcdbe89a4f23c6bb52264f0097a7ea3e718b38847512
5.0.62021-04-27T23:12:04.935250ZDownloadc14a8f50eddec74c5385cc8dfa1cec8d8a1f2aefc2bae4f004073da3c2cac9b3
5.0.72021-04-28T22:02:25.856478ZDownloadb84dae984cd112de0dd0829f35ac9fe21137dac5ee69c6430ddc5ef77959214c
5.0.82021-05-19T16:33:31.934369ZDownloadc93e71b1f47619aa5312e7bbedc7bb26ff40da370271fd7e531b4b030cabc82c
5.0.92021-05-25T18:33:38.307160ZDownload2c1458622fc9ee2722c1a7dbb1a390574ca476b919243b76822b807da76a7384
5.0.102021-06-07T18:26:04.217585ZDownloaddbf2929d9112062271d17fbaf8a2850d20a3cd660841a1d2be2b54d5760a6d9c
5.0.112021-07-15T19:17:28.979889ZDownload01d79ce16f7a830d02a5d2c93650c59813436334e82ec3a36b3fed90df75eb02
5.0.122021-07-21T16:46:16.429125ZDownload311de1ee1d4c783103821548767d2c7b118057901924ff38003880a0a80b9c77
5.0.132021-07-30T20:15:23.691198ZDownload034419542461be903960e7c3af4fca02389bdffcf65764a228aa9e34d90aa462
5.0.142021-08-06T15:53:45.853132ZDownload0519ff54a2a3e31a7ece46ea5c205ee9510efa8873374ee95daa40b9cab00fa1
5.0.152021-08-23T13:33:48.723091ZDownload6668f23c57bbf3857437c1683e8e0bef7e1077537593293e1fc8d1099fcc1981
5.0.162021-09-14T21:05:39.521149ZDownloadbfee3c0897229528e639457ff77ae710446a19a7404fdb9800cfe4947680611e
5.0.172021-12-20T20:11:33.384999ZDownloadb3d226c3ee1aa60b782eb9479fd7baa2e31eaaabc04781ba4711d62ed56fccd6
5.1.02022-02-11T00:23:13.829133ZDownloadee6d78bf86138646a798b44c7c9e1602676015126d356a80e60af1e939bc2d4a
5.2.02022-05-17T15:34:28.946489ZDownloada8a1ba34be3ef1056efd32b3f2e8f9266711bd3edf30dc7107d903f70da788f5
5.3.02022-07-28T15:41:52.307233ZDownloadc3454a63ae0e880c7c9dd2dcae2dd7df103cb491889333fd0a50560de803dc78
5.3.12022-09-14T18:14:25.199659ZDownloadc4f1c1c6f40d241297b48c621ae8ce46dac0bf5b9292023927a74d3822694ad2
5.3.22022-09-22T16:44:35.342604ZDownload2a8a17b82b1bde04d514e75d90d634a0ac23f6cb4991f6098009dd56836aeafe
5.4.02023-03-24T02:45:21.098037ZDownloaddd61809f04da1838a680926de50a9e87385c1de91c6579629c3d1723946e8059
5.4.12023-05-23T00:24:46.330315ZDownload8b46d7eb40abdda92d62edd01546051f0c27365e65608c284de336dccfef88cc
5.4.22023-06-10T01:53:25.038676ZDownload7d5b53bcd556c1bc7ffbe4e4d5a19c3e112b7e925e9e172dd7c6ad0630812616
5.4.32023-11-16T21:50:00.888039ZDownload4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1
5.4.42023-12-14T20:44:21.929951ZDownload6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917
5.4.52024-12-18T20:00:07.399207ZDownloadf99d8d072e249f719a5531735d146d8cf04c580d93920b04de75bef6dfb2daf6
5.4.62025-04-21T21:19:29.331733ZDownload4546eac99e8967ea91bae633d2ca7698181d008e95fa4627330cf903d573277a
5.5.0-dev2025-07-08T14:25:15.445093ZDownloadc83b003125f9f74ceab80912231cc34e89e8541a7b5f2c4ecdff857d0b74afa9
5.5.02025-07-21T14:30:09.857961ZDownload2314cbe9165bcd16106513df9cf3c3224713087f09723b128928dc11a4379f99
5.5.12025-09-04T15:24:21.921979ZDownload4feb43bc4eb6c03e832f5fcd637d1abb44b98f9cfa245c58e27382f58859f8f6
5.6.12025-11-21T10:26:13.107375ZDownloaddac24d461418d363778d53198d9ac0510b9d073869f078450f195766ec48d05e
5.6.32026-01-12T20:46:42.612735ZDownloada45d1aa065b796922db7b9e7e7e45f921aed17adf3a8318a1f47097e7e695566
5.6.42026-03-24T16:30:34.739354ZDownloadeff30d002f0c8bf073b6f929df4483b543133fcafce056870163587b03f1d422
5.6.52026-04-30T09:16:34.068572ZDownload3762486c07f0faba043abf7da4f51f8564d2119659b1d8a708d34bff74ed5035
5.7.02026-05-19T16:06:42.489153ZDownloadc8d040d754367108fbe482dcb79dd72b8fe60ac6727abd15b4783c5560297ee6
5.8.02026-07-31T09:33:04.743166ZDownloada9b2bb8762a19c91a5d2f79b4723376648454b7b2b428ad1113151ee79f6f68f
5.8.12026-08-06T08:45:07.097799ZDownload6c1970612452260366064d4df80fdb3eece1ec5e52610ae34a0e51f2f3d8e64f

Dependencies

analyzer "^1.0.0"

build "\u003e=1.3.0 \u003c3.0.0"

code_builder "\u003e=3.7.0 \u003c5.0.0"

collection "^1.15.0"

dart_style "\u003e=1.3.6 \u003c3.0.0"

matcher "^0.12.10"

meta "^1.3.0"

path "^1.8.0"

source_gen "\u003e=0.9.6 \u003c2.0.0"

test_api "\u003e=0.2.1 \u003c0.5.0"