configure method
Called by FlutterDevToolkit.init to apply
DevToolkitConfig.maxLogEntries. A cap passed to the constructor takes
precedence, so a consumer who configured the logger directly keeps it.
Implementation
void configure({required int maxEntries}) {
if (_explicitMaxEntries != null) return;
_maxEntries = maxEntries;
_trim();
}