-
-
Save Rahiche/9e4997eba810c3f696d21ada127b17fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static bool canUpdate(Widget oldWidget, Widget newWidget) { | |
return oldWidget.runtimeType == newWidget.runtimeType | |
&& oldWidget.key == newWidget.key; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment