Skip to content

Commit c452aae

Browse files
committed
refactor(ad_platform_type_l10n): add unimplemented error for demo platform type
- Throw UnimplementedError when AdPlatformType.demo is used - This change clarifies that demo platform type is not intended for dashboard usage - Emphasizes that demo platform type is for mobile client and demo environment specific use cases
1 parent baaac16 commit c452aae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/shared/extensions/ad_platform_type_l10n.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ extension AdPlatformTypeL10n on AdPlatformType {
1212
return l10n.adPlatformTypeAdmob;
1313
case AdPlatformType.local:
1414
return l10n.adPlatformTypeLocal;
15+
case AdPlatformType.demo:
16+
throw UnimplementedError(
17+
'Demo ad platform type is not intended for dashboard usage, rather for mobile client, demo env specific usecase.',
18+
);
1519
}
1620
}
1721
}

0 commit comments

Comments
 (0)