create static method

Future<SocialLinks> create({
  1. Map<String, List<Link>>? profiles,
  2. Config? config,
})

Implementation

static Future<SocialLinks> create(
    {Map<String, List<Link>>? profiles, Config? config}) async {
  profiles = profiles ?? await loadJsonAssets();
  final instance = SocialLinks(profiles: profiles, config: config);
  return instance;
}