Skip to content

Instantly share code, notes, and snippets.

View Sovann72's full-sized avatar

Sovann En Sovann72

  • Tenbox
  • Phnom Penh
  • 11:31 (UTC +07:00)
  • X @only_faq
View GitHub Profile

Follow the documentation here. In your pubspec don't forget to add assets property. My folder structure is

  • /
    • bin
      • env_testing
        • env_testing.dart
    • env
      • dev.env
      • stag.env

So the path in assets would be

@Sovann72
Sovann72 / check_equality_of_two_list.dart
Last active February 28, 2024 08:24
check-equality-of-two-list
// https://stackoverflow.com/a/22333042/15149752
import 'package:collection/collection.dart';
List<String> otherList = ['foo', 'bar', 'baz'];
List<String> something = ['bar', 'baz', 'foo'];
void checkTwoListForEquality(List<String> firstList, List<String> secList) {
Function unOrdDeepEq = const DeepCollectionEquality.unordered().equals;