peek method

Image? peek(
  1. String path, {
  2. DateTime? modified,
})

The picture of the model at path (project-relative) as it was at modified, if it is ready; asking starts it.

Implementation

ui.Image? peek(String path, {DateTime? modified}) {
  final key = '$path@${modified?.millisecondsSinceEpoch}';
  if (_done.containsKey(key)) return _done[key];
  of(path, modified: modified);
  return null;
}