configInfo function
What the SDK knows about the last fetch.
Implementation
RemoteConfigInfo configInfo() {
final v = _readInts(fdbRcInfo, 4);
return RemoteConfigInfo(
lastFetchTime: DateTime.fromMillisecondsSinceEpoch(v[0]),
// A zero fetch time means nothing has been fetched. The SDK still reports
// success there, which reads as a successful fetch that never happened.
lastFetchStatus: v[0] == 0
? RemoteConfigFetchStatus.noFetchYet
: RemoteConfigFetchStatus.values[v[1].clamp(0, 2)],
throttledEndTime: DateTime.fromMillisecondsSinceEpoch(v[3]),
);
}