Skip to content

Commit 85ddcfc

Browse files
committed
Rename helper extension
1 parent dc72ba9 commit 85ddcfc

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

lib/src/react_client/event_helpers.dart

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,13 @@ SyntheticWheelEvent createSyntheticWheelEvent({
759759
}) as SyntheticWheelEvent;
760760
}
761761

762-
extension SyntheticEventTypeHelpers on SyntheticEvent {
762+
extension SyntheticEventHelper on SyntheticEvent {
763+
/// Whether the event instance has been removed from the ReactJS event pool.
764+
///
765+
/// > See: [persist]
766+
@Deprecated('The modern event system does not use pooling. This always returns true.')
767+
bool get isPersistent => true;
768+
763769
/// Uses Duck Typing to detect if the event instance is a [SyntheticClipboardEvent].
764770
bool get isClipboardEvent => hasProperty(this, 'clipboardData');
765771

@@ -794,14 +800,6 @@ extension SyntheticEventTypeHelpers on SyntheticEvent {
794800
bool get isWheelEvent => hasProperty(this, 'deltaX');
795801
}
796802

797-
extension SyntheticEventHelper on SyntheticEvent {
798-
/// Whether the event instance has been removed from the ReactJS event pool.
799-
///
800-
/// > See: [persist]
801-
@Deprecated('The modern event system does not use pooling. This always returns true.')
802-
bool get isPersistent => true;
803-
}
804-
805803
extension DataTransferHelper on SyntheticMouseEvent {
806804
/// The data that is transferred during a drag and drop interaction.
807805
///

0 commit comments

Comments
 (0)