Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d0f9ef6

Browse files
sanjayc77Sanjay Chouksey
and
Sanjay Chouksey
authored
Allow access to raw zircon handle (#19052)
As part of migrating Fuchsia from legacy SceneHost/ChildView based code to Flutter Embedder based PlatformView, we need to expose the raw zircon handle. Since we are converting a private getter to public getter, this does not affect any existing code. Co-authored-by: Sanjay Chouksey <sanjayc@google.com>
1 parent 279154e commit d0f9ef6

File tree

1 file changed

+4
-4
lines changed
  • shell/platform/fuchsia/dart-pkg/zircon/lib/src

1 file changed

+4
-4
lines changed

shell/platform/fuchsia/dart-pkg/zircon/lib/src/handle.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ class Handle extends NativeFieldWrapperClass2 {
2020
}
2121
static Handle _createInvalid() native 'Handle_CreateInvalid';
2222

23-
int get _handle native 'Handle_handle';
23+
int get handle native 'Handle_handle';
2424

2525
@override
26-
String toString() => 'Handle($_handle)';
26+
String toString() => 'Handle($handle)';
2727

2828
@override
2929
bool operator ==(Object other) =>
30-
(other is Handle) && (_handle == other._handle);
30+
(other is Handle) && (handle == other.handle);
3131

3232
@override
33-
int get hashCode => _handle.hashCode;
33+
int get hashCode => handle.hashCode;
3434

3535
// Common handle operations.
3636
bool get isValid native 'Handle_is_valid';

0 commit comments

Comments
 (0)