😇

Flutter, Swift and Kotlin - 遅延処理(1秒後)

2022/08/12に公開
flutter
Future.delayed(const Duration(milliseconds: 1000), () {
    // TODO
});
swift
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
    // TODO
}
kotlin
Handler(Looper.getMainLooper()).postDelayed( {
    // TODO
}, 1000)

Discussion