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;