/home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/lib/shared_preferences.dart:146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.
'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/home/ykwings/flutter/packages/flutter/lib/src/services/platform_channel.dart').
How to fix below problem
ChangeNotify cannot run in flutter 2.0
/home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/lib/shared_preferences.dart:146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.