Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created April 7, 2025 00:25
Show Gist options
  • Save fredgrott/113dfb512e29d22260563e43d9731759 to your computer and use it in GitHub Desktop.
Save fredgrott/113dfb512e29d22260563e43d9731759 to your computer and use it in GitHub Desktop.
persons
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
class Employees with FromIListMixin<Person. Employees> {
final Ilist<Person> _employees;
Employees([Iterable<Person> employees]) : _employees = IList(employees);
Employees newInstance(IList<Person> iList) => Employees(iList);
IList<Person> get iter => _empolyees;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment