Skip to content

Commit

Permalink
Add a minor note on usuage of callback refs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamsbrar committed Aug 5, 2022
1 parent b498b8e commit c2a1f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rad/lib/src/widgets/abstract/html_widget_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ abstract class HTMLWidgetBase extends Widget {
/// Rad will call the ref callback with the DOM element before widget renders,
/// and call it with null before it unmounts.
///
/// Please note, similar to other event listeners, callback has to be present
/// on the initial render.
///
final NullableElementCallback? ref;

/// ID of dom node.
Expand Down

0 comments on commit c2a1f75

Please sign in to comment.