improve readerability handling
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||
|
||||
class ConsistentController {
|
||||
final InAppWebViewController? value;
|
||||
|
||||
const ConsistentController(this.value);
|
||||
|
||||
@override
|
||||
// ignore: avoid_dynamic_calls
|
||||
int get hashCode => value?.platform.id.hashCode ?? -1;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
if (other is! ConsistentController) return false;
|
||||
return hashCode == other.hashCode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user