Platform channels Flutter ਦੀ Dart code ਅਤੇ native platform code (iOS/Android) ਦੇ ਵਿਚਕਾਰ ਸੰਚਾਰ ਕਰਨ ਦੀ ਵਿਧੀ ਹਨ — Flutter ਨੂੰ native features ਜਾਂ Dart packages ਦੁਆਰਾ ਉਪਲਬਧ ਨਾ ਹੋਣ ਵਾਲੇ native code ਤੱਕ ਪਹੁੰਚਣ ਦਿੰਦੇ ਹਨ। ਉਹ Flutter ਨੂੰ ਅੰਤਰੀਵ ਪਲੇਟਫਾਰਮ ਨਾਲ ਜੋੜਦੇ ਹਨ।
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.
