check for platform error
static Future<List<Platform>> platforms() async { return await loadPlatform(); }