postFrame function

void postFrame(
  1. dynamic f()
)

Implementation

void postFrame(Function() f) =>
    SchedulerBinding.instance.addPostFrameCallback((_) => f());