Skip to content

Instantly share code, notes, and snippets.

@Blasanka
Created December 29, 2019 04:51
Show Gist options
  • Select an option

  • Save Blasanka/73f7c386cbb7246c617712c390d4dbb1 to your computer and use it in GitHub Desktop.

Select an option

Save Blasanka/73f7c386cbb7246c617712c390d4dbb1 to your computer and use it in GitHub Desktop.

Revisions

  1. Blasanka created this gist Dec 29, 2019.
    7 changes: 7 additions & 0 deletions main.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    void main() {
    List<String> first = ['A','B','C','D'];
    List<String> second = ['B','D'];

    List<String> result = first.where((item) => !second.contains(item)).toList();
    print(result);
    }