reading documentation/lsp info

(new) Future<String> Future.delayed(Duration duration, [FutureOr<String> Function()? computation])

When looking up dart documentation, you might come across code like above. It gives you core info about the Future.delayed function :

  1. The function is Future.delayed
  2. It returns a Future<String> value
  3. It needs (compulsory) a value of type Duration to be passed to it.
  4. Opitionally, you can pass to it a function that returns a FutureOr<String>.

Comments