Is it better to use Theme.of() or Provider.of()
What is the complexity of Theme.of()
, and since Provider.of()
‘s complexity is O(1) (if I’m correct), would it be better to use Theme.of() or Provider.of() to get the Theme from the context?
What is the complexity of Theme.of()
, and since Provider.of()
‘s complexity is O(1) (if I’m correct), would it be better to use Theme.of() or Provider.of() to get the Theme from the context?