This file contains 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
import 'dart:collection'; | |
HashMap memoizedTextThemes = HashMap<String, String>(); | |
abstract class PacificDesignSystem { | |
String get colorScheme; | |
String get textTheme { | |
if(memoizedTextThemes[colorScheme] == null){ | |
memoizedTextThemes[colorScheme] = 'textTheme for $colorScheme'; |
This file contains 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
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
typedef void AddButtonPressed(int connectionAgg, VoidCallback preventDefaultBehavior); |
This file contains 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
'use strict'; | |
//error is caught by the promise | |
function someSyncFunctionThrow(){ | |
let promise = new Promise((resolve, reject)=>{ | |
throw 'someSyncFunctionThrow error occurred!!!!'; | |
resolve(); | |
}); | |
return promise; | |
} |
This file contains 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
alert('hello'); |