Skip to content

Instantly share code, notes, and snippets.

@ZaidSameer
ZaidSameer / foreachlistset.dart
Created April 4, 2022 18:43 — forked from aruld/foreachlistset.dart
Dart forEach() on a List/Set
main() {
List<String> list = new List<String>();
list.add('one');
list.add('two');
list.add('twelve');
list.forEach((element) => print(element));
Set<String> set = Set.from(list);
set.forEach((element) => print(element));
}
import 'package:flutter/material.dart';
import 'gd_button.dart';
class GdAsyncButton extends StatefulWidget {
final Widget child;
final Color color;
final bool flat;
final bool disabled;
<!doctype html>
<title>Site Maintenance</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
<style>
html, body { padding: 0; margin: 0; width: 100%; height: 100%; }
* {box-sizing: border-box;}
body { text-align: center; padding: 0; background: #7CB9E8; color: #fff; font-family: Open Sans; }
h1 { font-size: 50px; font-weight: 100; text-align: center;}
body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;}
article { display: block; width: 700px; padding: 50px; margin: 0 auto; }

Keybase proof

I hereby claim:

  • I am zaidsameer on github.
  • I am zaidsameer (https://keybase.io/zaidsameer) on keybase.
  • I have a public key ASCorycxTDYylh43V0Yikqu09ywTpfC7NX0xWj3bQcRfnQo

To claim this, I am signing this object: