appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
21 stars 3 forks source link

Make AppodealAdType enum #88

Open JSBmanD opened 1 month ago

JSBmanD commented 1 month ago

As dart supports complex enums, it will be great to make AppodealAdType as enum with fields.

Example:

enum AppodealAdType {
  interstitial(android: 0, ios: 1, sios: 3),
  rewardedVideo(android: 0, ios: 1, sios: 3),
  banner(android: 0, ios: 1, sios: 3);

  const AppodealAdType({
    required this.android,
    required this.ios,
    required this.sios,
  });

  final int android;
  final int ios;
  final int sios;
}