languages

struct widget: Widget { let kind: String = "widget" var body: some WidgetConfiguration { IntentConfiguration(kind: kind, intent: ConfigurationIntent.self, provider: Provider()) { entry in widgetEntryView(entry: entry) } .configurationDisplayName("My Widget") .description("This is an example widget.") } } 스위프트로 위젯 익스텐션을 추가 중 특이한 문법을 발견했다. IntentConfiguration(kind: kind, intent: ConfigurationInten..
https://dart.dev/guides/language/effective-dart Effective Dart Best practices for building consistent, maintainable, efficient Dart libraries. dart.dev 두 가지 중요한 주제 Be consistent - formatting, casing 과 같은 것들은 주관적, 정답이 없음, 일관되게 짜는 것이 도움이 된다. Be brief - Dart는 많은 기능이 있다. 간결하게 작성하자. Identifiers UpperCamelCase, lowerCamelCase, lowercase_with_underscores 세가지가 쓰임 UpperCamelCase - class, enum, typedef, t..
uzzam
'languages' 카테고리의 글 목록