Skip to content

Commit ee8ab08

Browse files
Fix removal of setter
1 parent aac121a commit ee8ab08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/util/safe_render_manager/safe_render_manager.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class SafeRenderManager extends Disposable {
6060
/// this may not be populated until later than expected.
6161
dynamic get contentRef => _contentRefObject.current;
6262

63+
// This setter only exists for backwards compatibility purposes.
64+
@Deprecated('This ref should only be read, since it gets set by the rendered content')
65+
set contentRef(dynamic value) => _contentRefObject.current = value;
66+
6367
_RenderState _state = _RenderState.unmounted;
6468

6569
/// A list of [render] calls queued up while the component is in the process

0 commit comments

Comments
 (0)