useEffect function

dynamic useEffect(
  1. dynamic Function()? effect(), [
  2. List? deps
])

Implementation

useEffect(Function()? Function() effect, [List? deps]) {
  if (kDebugMode) {
    print("""
[flutter_fc] useEffect is deprecated as it may cause errors
when setting parent's state while building child.
Please use "useDiff" with "addPostFrameCallback" instead.
""");
  }
  useDangerousAfterRebuild(effect, deps);
}