Skip to content

Commit

Permalink
added allowed user properties
Browse files Browse the repository at this point in the history
added to constructor since it's required by the parent lib now
  • Loading branch information
claude committed Mar 22, 2023
1 parent 98f9be3 commit 9032038
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/flutter_app_analytics_segment_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ export 'segment_interface.dart';

/// A Segment Provider for Flutter app analytics.
class SegmentProvider implements AnalyticsProvider {
@override
List<String> allowedUserProperties = [];
final SegmentInterface _driver;
final String _writeKey;

bool _initialized = false;

SegmentProvider(
{required String writeKey,
SegmentInterface driver = const SegmentDriver()})
SegmentInterface driver = const SegmentDriver(),
List<String>? allowedProperties})
: _driver = driver,
_writeKey = writeKey;
_writeKey = writeKey,
allowedUserProperties = allowedProperties ?? [];

Future<void> initialize() async {
if (_initialized) {
Expand Down

0 comments on commit 9032038

Please sign in to comment.