---
title: "Yohanes Bandung (@ybbond) | Hashnode"
description: "Frontend Engineer who uses NVim, and listens to The Trees and The Wild. I learn, sometimes after I broke stuff. But still, I learn."
url: "https://hashnode.com/@ybbond"
---

@ybbond

# Yohanes Bandung

@ybbond · Joined July 2019

Frontend Engineer who uses NVim, and listens to The Trees and The Wild. I learn, sometimes after I broke stuff. But still, I learn.

## Comments

[Great information! We get the ability to add default value if mapping to enum use non-assigned value. do you have any idea how we can get default value if the enum is nullable? for example: final WeekDay? weekDay = null; // I want to get empty string final String weekDayShortName = weekDay.shortName; previously, I use something like this: enum WeekDay { monday } // extend nullable WeekDay extension WeekDayExtension on WeekDay? { String get shortName { switch (this) { case WeekDay.monday: return 'Mon'; case null: return ''; } } }](https://hashnode.com/posts/everything-you-need-to-know-about-enum-with-flutter-and-dart/651bfdf02198838db882ff54/comment/651cfc7dc64d5e99595a0580)

Comment · Article · Oct 4, 2023 · [Everything you need to know about Enum with Flutter and Dart](https://hashnode.com/posts/everything-you-need-to-know-about-enum-with-flutter-and-dart/651bfdf02198838db882ff54)
