Skip to content

Commit

Permalink
1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Nov 17, 2020
1 parent 120ad0e commit b147951
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2 - Nov 18, 2020

- Fix: `The method 'mapIndexed' is defined in multiple extensions for 'Set<dynamic>' and neither is more specific.` when using `collection: 1.15.0-nullsafety.5` package.

## 1.3.1 - Oct 6, 2020

- Add extension for `Iterable<Sink>` and `Iterable<StreamSubscription>`.
Expand Down
8 changes: 4 additions & 4 deletions lib/src/disposebag_base.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:async' show Future, StreamSink, StreamSubscription;

import 'package:collection/collection.dart';
import 'package:meta/meta.dart';
import 'package:collection/collection.dart' show UnmodifiableSetView;
import 'package:meta/meta.dart' show visibleForTesting;

/// Represents the result of disposing or clearing.
enum BagResult {
Expand Down Expand Up @@ -206,7 +206,7 @@ class DisposeBag {

/// Get all disposable
@visibleForTesting
Set<dynamic> get disposables => UnmodifiableSetView(_resources);
Set<dynamic> get disposables => UnmodifiableSetView({..._resources});

/// Adds a disposable to this container or disposes it if the container has been disposed.
Future<bool> add(dynamic disposable) async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: disposebag
description: A package to help disposing Streams and closing Sinks easily.
version: 1.3.1
version: 1.3.2
homepage: https://github.com/hoc081098/disposebag.git
repository: https://github.com/hoc081098/disposebag.git
issue_tracker: https://github.com/hoc081098/disposebag/issues
Expand Down

0 comments on commit b147951

Please sign in to comment.