Skip to content

Instantly share code, notes, and snippets.

View ha-yi's full-sized avatar
🇵🇸
Software Engineer - Remote Worker

Hayi Nukman ha-yi

🇵🇸
Software Engineer - Remote Worker
View GitHub Profile
main() {
for(int i = 0; i < 20; i++) {
print((9 * i) + (i.isEven ? 1 : 0));
}
}
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
import 'package:test/test.dart';
extension ListExt<T> on List<T> {
/// Remove an object from
operator -(T other) async {
this.remove(other);
return this;
extension StringExt on String {
operator -(String another) {
return this.replaceAll(another, "");
}
}
void main() {
print("Hello World" - "World");
}
import 'package:flutter/material.dart';
extension StringExt on String {
Text toH2(context) {
return Text(this, style: Theme.of(context).textTheme.headline2,);
}
}
void main() {
runApp(MyApp());
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
typedef GetString<T> = String Function(T from);
class MyObject{
String title;
String name;
MyObject(this.title, this.name);
}
extension StringExt on String {
operator -(String another) {
return this.replaceAll(another,"");
}
}
main() {
print("Hello" - "l");
}
import 'package:flutter/material.dart';
class SplitColorIcon extends StatelessWidget {
final double size;
final Color leftColor;
final Color rightColor;
final IconData iconData;
const SplitColorIcon({
Key key,
class BaseData<T> {
T data;
String message;
int code;
}
void main() {
BaseData<String> bs = new BaseData();