passsy / spot

Chainable powerful Flutter widget selector API, screenshots and assertions for awesome widget tests.
https://pub.dev/packages/spot
Apache License 2.0
62 stars 1 forks source link

Add getDiagnosticProp() #40

Closed passsy closed 7 months ago

passsy commented 7 months ago

Allows reading diagnostic properties values directly. This allows checking of deeper properties without complex Subject<T> extensions

      final value = spot<Text>().existsOnce().getTextHeightBehavior();
      expect(value.leadingDistribution, TextLeadingDistribution.even);