title property

NSString? get title
override

The string containing the annotation’s title.

Although this property is optional, if you support the selection of annotations in your map view, you are expected to provide this property. This string is displayed in the callout for the associated annotation.

Implementation

objc.NSString? get title {
  if (!objc.respondsToSelector(this.ref.pointer, _sel_title)) {
    throw objc.UnimplementedOptionalMethodException(
        'MLNMultiPolygonFeature', 'title');
  }
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_title);
  return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true);
}
set title (NSString? value)
inherited

The title of the shape annotation.

The default value of this property is nil.

This property is ignored when the shape is used in an MLNShapeSource. To name a shape used in a shape source, create an MLNFeature and add an attribute to the MLNFeature/attributes property.

Implementation

set title(objc.NSString? value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setTitle_, value?.ref.pointer ?? ffi.nullptr);

}