Skip to content

Instantly share code, notes, and snippets.

View icgoogo's full-sized avatar

icgoogo icgoogo

View GitHub Profile
@icgoogo
icgoogo / main.dart
Last active October 3, 2023 10:05
Dart snippets for simplified if and switch condition
import 'dart:math';
///second simplified example
String get spelledOut2 {
switch(Random().nextInt(4)) {
case 0:
return "Zero";
case 1:
return "One";
case 2: