attachView method
Attach a child view to a parent at the specified index
Implementation
@override
Future<bool> attachView(String childId, String parentId, int index) async {
try {
final result = await bridgeChannel.invokeMethod<bool>('attachView', {
'childId': childId,
'parentId': parentId,
'index': index,
});
return result ?? false;
} catch (e) {
debugPrint('Method channel attachView error: $e');
return false;
}
}