lazy abstract method

FutureOr<EncodedData> lazy(
  1. DataProvider<T> provider
)

Encodes the provided lazy data. Some platforms support providing the data on demand. In which case the provider callback will be invoked when the data is requested. On platforms that do not support this (iOS, web) the provider callback will be called eagerly.

Implementation

FutureOr<EncodedData> lazy(DataProvider<T> provider);