Swift의 closure, Java의 lamda 등 함수포인터에서 기능이 더 추가된 클로져라는 것을 이용해서 이전 화면에서 다음 화면에 대한 제어권을 가질 수 있다.
그렇다면 Flutter 은 어떻게 사용할까?
아래와 같이 사용된다.
- void Function()? onPress;
- String Function(String value)? onPress;
Reference
https://devmemory.tistory.com/54
https://youngest-programming.tistory.com/686