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
/** | |
* author: bunrin | |
* .... | |
* ...... | |
*/ | |
enum STATUS_CODE { | |
}; |
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
/* | |
* author: malinkaphann@gmail.com | |
* create an alert widget | |
* */ | |
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); |
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
/** | |
* author: malinkaphann@gmail.com | |
* how to create class with static and non-static methods | |
*/ | |
class MyClass { | |
static staticMethod() { | |
print('hello I am static method'); | |
} |
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
/** | |
* author: malinkaphann@gmail.com | |
* how to create singleton class | |
*/ | |
// singleton class | |
class MySingleton { | |
MySingleton._privateConstructor(); |