Last active
October 20, 2024 02:26
-
-
Save gyugyu90/7940329cb6abfcd48d0665ceb16f54ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Feed { | |
void onClick(); | |
} | |
class PostFeed extends Feed { | |
@override | |
void onClick() { | |
print('show tags'); | |
} | |
} | |
class ReelsFeed extends Feed { | |
@override | |
void onClick() { | |
print('show reels in full screen mode'); | |
} | |
} | |
class AdFeed extends Feed { | |
@override | |
void onClick() { | |
print('learn more about the ad'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment