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

Using Priority Queues on LeetCode in JavaScript and TypeScript to avoid `Time Limit Exceeded`

A lot of problems on LeetCode require the use of a Priority Queue. Without it, even though your implementation works, it will not be efficient enough and the submission might fail with the dreaded "Time Limit Exceeded", passing only 980 out of 1000 tests. Solving questions without a Priority Queue
May 16, 2023 — 3 min read

Fixing `because every version of firebase_ui_localizations depends on flutter_localizations from sdk which depends on intl 0.18.0, firebase_ui_firestore >=1.0.1 requires intl 0.18.0.

Today my Flutter app started breaking with the following error: because every version of firebase_ui_localizations depends on flutter_localizations from sdk which depends on intl 0.18.0, firebase_ui_firestore >=1.0.1 requires intl 0.18.0. So, because [project]  depends on both intl ^0.17.
Apr 27, 2023 — 3 min read

Fixing `ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a`

Today my Flutter app failed to build in iOS with this error: ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a Googling will send you to StackOverflow posts with 1001 ways to supposedly fix it with obscure scripts and no explanation.
Apr 26, 2023 — 5 min read
wafrat © 2023