Stipop constructor

Stipop(
  1. String userId, {
  2. String? languageCode,
  3. String? countryCode,
  4. void onStickerPackSelected(
    1. SPPackage spPackage
    )?,
  5. void onStickerSelected(
    1. SPSticker spSticker
    )?,
})

Implementation

Stipop(this.userId,
    {this.languageCode,
    this.countryCode,
    this.onStickerPackSelected,
    this.onStickerSelected})
    : assert(userId.isNotEmpty, 'userID should not be empty'),
      assert((languageCode == null && countryCode == null) || (languageCode != null && countryCode != null), 'languageCode and countryCode should be null or not empty same time');