Unverified Commit a5dc49f4 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub

Add assertion to _CupertinoSwitchRenderObjectWidget, otherwise it is confusing...

Add assertion to _CupertinoSwitchRenderObjectWidget, otherwise it is confusing why updateRenderObject omits state update (#112044)
parent 31d03d50
......@@ -378,6 +378,7 @@ class _CupertinoSwitchRenderObjectWidget extends LeafRenderObjectWidget {
@override
void updateRenderObject(BuildContext context, _RenderCupertinoSwitch renderObject) {
assert(renderObject._state == state);
renderObject
..value = value
..activeColor = activeColor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment