dvHomeWidgetPlatformName function
id with everything a platform identifier may not carry taken out.
Identifiers are kebab case, and a hyphen is fine in a defaults key and not fine in a Swift type or an Android resource name. One spelling of the substitution, so the name the extension is built with and the name the application writes under cannot come out differently.
Implementation
String dvHomeWidgetPlatformName(String id) =>
id.replaceAll(RegExp('[^A-Za-z0-9]'), '_');