createdByTestHelpers property

bool createdByTestHelpers
final

If true, leaking objects created by test helpers will be ignored.

An object counts as created by a test helper if the stack trace of start of leak tracking contains a frame, located after the test body frame, that points to the folder test or the package flutter_test, except:

  • methods intended to be called from test body like runAsunc or pump
  • frames that match testHelperExceptions

Implementation

final bool createdByTestHelpers;