Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions splitio/lib/splitio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export 'package:splitio_platform_interface/split_view.dart';
typedef ClientReadinessCallback = void Function(SplitClient splitClient);

class Splitio {
final String _apiKey;
final String _sdkKey;

final String _defaultMatchingKey;

Expand All @@ -25,15 +25,15 @@ class Splitio {

/// SDK instance constructor.
///
/// Use [_apiKey] to specify your Split API key.
/// Use [_sdkKey] to specify your Split SDK key.
///
/// Use [_defaultMatchingKey] to specify a default matching key. The default
/// client will be associated with it.
///
/// An optional [bucketingKey] can also be specified.
///
/// Use the optional [configuration] parameter to fine tune configuration options.
Splitio(this._apiKey, this._defaultMatchingKey,
Splitio(this._sdkKey, this._defaultMatchingKey,
{String? bucketingKey, SplitConfiguration? configuration}) {
_defaultBucketingKey = bucketingKey;
_splitConfiguration = configuration;
Expand All @@ -60,7 +60,7 @@ class Splitio {
/// up-to-date, but all the functionality will be available.
///
/// [onUpdated] is executed when changes have been made, such as creating
/// new splits or modifying segments.
/// new feature flags or modifying segments.
///
/// [onTimeout] is executed if the SDK has not been able to get ready in time.
SplitClient client(
Expand Down Expand Up @@ -123,7 +123,7 @@ class Splitio {

Future<void> _init() {
return _platform.init(
apiKey: _apiKey,
apiKey: _sdkKey,
matchingKey: _defaultMatchingKey,
bucketingKey: _defaultBucketingKey,
sdkConfiguration: _splitConfiguration);
Expand Down
2 changes: 1 addition & 1 deletion splitio/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: splitio
description: Official plugin for split.io, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.
description: Official plugin for split.io, the platform for controlled rollouts, which serves features to your users via feature flags to manage your complete customer experience.
version: 0.1.2+2
homepage: https://split.io/
repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio/
Expand Down