initWithIdentifier_ method

MLNImageSource initWithIdentifier_(
  1. NSString identifier
)
override

Returns a source initialized with an identifier.

After initializing and configuring the source, add it to a map view’s style using the MLNStyle/addSource: method.

@param identifier A string that uniquely identifies the source in the style to which it is added. @return An initialized source.

Implementation

MLNImageSource initWithIdentifier_(objc.NSString identifier) {
  final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), _sel_initWithIdentifier_, identifier.ref.pointer);
  return MLNImageSource.castFromPointer(_ret, retain: false, release: true);
}