afterLayout static method

dynamic afterLayout(
  1. VoidCallback callback
)

Implementation

static afterLayout(VoidCallback callback) {
  WidgetsBinding.instance.addPostFrameCallback((Duration timeStamp) {
    callback();
  });
}