Platform channels Flutter کا Dart code اور native platform code (iOS/Android) کے درمیان رابطہ قائم کرنے کا طریقہ ہیں — جو Flutter کو native features یا Dart packages کے ذریعے دستیاب نہ ہونے والے موجودہ native code تک رسائی دیتے ہیں۔ یہ Flutter کو بنیادی platform سے جوڑتے ہیں۔
Platform channels کیوں موجود ہیں
Flutter (Dart) can't directly access every native platform feature. Platform channels
let Dart call NATIVE code (Kotlin/Java on Android, Swift/Objective-C on iOS):
→ access native APIs/SDKs not covered by existing plugins
→ use existing native libraries or platform-specific functionality
→ integrate with native code in a hybrid app
→ The bridge between Flutter and the native platform.
