wafrat
  • Home
  • Projects
  • About
Subscribe
dart

Setting custom values to Enums in Dart

wafrat

Jan 4, 2023

I do not remember where I got it from, but yes, it's possible. This sample shows all there is to know about it: https://github.com/atn832/kanji_dictionary/blob/2d9b2332303440ac6858040394ed6cf91c05d964/lib/src/book.dart

Lazy post. Hope it helped! :)

Sign up for more like this.

Enter your email
Subscribe

Iterating two lists at the same time in Dart

It'd be nice to be able to run this kind of loop iterable.map((e) => ...)  on two iterables at the same time. I really like the iterable.map syntax because most times, I only care about the actual element values, not the indices. What if I have two iterables of
Jan 5, 2023 — 1 min read

Getting started with Pixel Art

Here is what I've learned from https://www.coursera.org/learn/pixel-art-video-games. You can audit the class for free by clicking "Enroll for free", then choosing "Audit for free". I am using piskelapp.com. It's free and really well made. Unlike Photoshop where you need to pick the right presets
Dec 31, 2022 — 2 min read

Fixing `DVTPortalServiceErrorDomain: Your session has expired` in Flutter for iOS

These days my iOS app updates for Flutter keep randomly failing with the following error: DVTPortal: Error: Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired.  Please log in." It used to be about once every 5 builds, but then it became 100% of them failing with that error. So
Dec 25, 2022 — 2 min read
wafrat © 2023