Skip to content

Instantly share code, notes, and snippets.

View hawkkiller's full-sized avatar
🎯
Focusing

Michael Lazebny hawkkiller

🎯
Focusing
View GitHub Profile
void main() {
print(formatByDigits(10000));
print(formatByDigits(9999));
print(formatByDigits(12000));
print(formatByDigits(12000000));
}
String formatByDigits(int number) {
final s = number.toString().split('');
return s.reversed
@hawkkiller
hawkkiller / main.dart
Created April 25, 2022 07:54
An example of using intents and actions API
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:meta/meta.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(
const MyApp(),
);
import 'package:meta/meta.dart';
void main() {
// iterates only first element.
gen().first;
print('Iterated first item because of first\n');
// iterates each element
gen().toList();
print('Iterated List\n');
gen().last;