setTrackingProfiles method

  1. @override
Future<void> setTrackingProfiles(
  1. Map<TrackingProfile, Config> profiles, {
  2. TrackingProfile? initialProfile,
  3. List<TrackingProfileRule> rules = const [],
  4. bool enableAutomation = false,
})
override

Implementation

@override
Future<void> setTrackingProfiles(
  Map<TrackingProfile, Config> profiles, {
  TrackingProfile? initialProfile,
  List<TrackingProfileRule> rules = const [],
  bool enableAutomation = false,
}) async {
  _methodCalls.add('setTrackingProfiles');
  _trackingProfiles
    ..clear()
    ..addAll(profiles);
  _currentTrackingProfile =
      initialProfile ?? (profiles.isNotEmpty ? profiles.keys.first : null);
  _trackingAutomationEnabled = enableAutomation;
}