pumpDeviceAndMatch method

Future<void> pumpDeviceAndMatch({
  1. required String groupTitle,
  2. required DeviceBuilder builder,
  3. Future gestureBuilder()?,
  4. bool? autoHeight = true,
  5. Iterable<LocalizationsDelegate>? localizationsDelegates,
  6. Iterable<Locale>? supportedLocales,
  7. WildnessProperties? config,
  8. TextStyle? defaultTextStyle,
  9. Color? primaryColor,
})

Implementation

Future<void> pumpDeviceAndMatch({
  required String groupTitle,
  required DeviceBuilder builder,
  Future Function()? gestureBuilder,
  bool? autoHeight = true,
  Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
  Iterable<Locale>? supportedLocales,
  WildnessProperties? config,
  TextStyle? defaultTextStyle,
  Color? primaryColor,
}) async {
  await pumpDeviceBuilder(
    builder,
    wrapper: wildnessWidgetWrapper(
      config: config,
      defaultTextStyle: defaultTextStyle,
      localizationsDelegates: localizationsDelegates,
      supportedLocales: supportedLocales,
      primaryColor: primaryColor,
    ),
  );

  await pumpAndSettle();

  await gestureBuilder?.call();

  await screenMatchesGolden(
    this,
    screenMatchesName(groupTitle),
    autoHeight: autoHeight,
  );
}