// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

import 'dart:typed_data';

import 'package:amap_map_fluttify/src/ios/ios.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';
import 'package:core_location_fluttify/core_location_fluttify.dart';
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
import 'package:amap_search_fluttify/amap_search_fluttify.dart';
import 'package:amap_location_fluttify/amap_location_fluttify.dart';

extension CustomMapStyle on MAMapView {
  //region getters
  Future<bool?> get_customMapStyleEnabled() async {
    final __result__ = await kAmapMapFluttifyChannel.invokeMethod("MAMapView::get_customMapStyleEnabled", {'__this__': this});
    return __result__;
  }
  
  //endregion

  //region setters
  Future<void> set_customMapStyleEnabled(bool? customMapStyleEnabled) async {
    await kAmapMapFluttifyChannel.invokeMethod('MAMapView::set_customMapStyleEnabled', <String, dynamic>{'__this__': this, "customMapStyleEnabled": customMapStyleEnabled});
  }
  
  //endregion

  //region methods
  
  Future<void> setCustomMapStyleOptions(MAMapCustomStyleOptions? styleOptions) async {
    // print log
    if (fluttifyLogEnabled) {
      debugPrint('fluttify-dart: MAMapView@$refId::setCustomMapStyleOptions([])');
    }
  
    // invoke native method
    final __result__ = await kAmapMapFluttifyChannel.invokeMethod('MAMapView::setCustomMapStyleOptions', {"styleOptions": styleOptions, "__this__": this});
  
  
    // handle native call
  
  
    return __result__;
  }
  
  //endregion
}