jonataslaw / get_storage

A fast, extra light and synchronous key-value storage to Get framework
MIT License
369 stars 83 forks source link

Updated a deprecated method with the new one in `test/getstorage_test.dart` #85

Closed yasinarik closed 2 years ago

yasinarik commented 2 years ago

With this PR, I simply changed this file: test/getstorage_test.dart

There was a method used for injecting a mock channel: channel.setMockMethodCallHandler

It is deprecated so I have made the appropriate changes using up to date method (Flutter version: 2.5.1): TestDefaultBinaryMessengerBinding

The error message before this fix: package:flutter_test/src/deprecated.dart 95:47 TestMethodChannelExtension.setMockMethodCallHandler

jonataslaw commented 2 years ago

Thanks for your contribution! LGTM