selectLayer method

bool selectLayer(
  1. String id
)

选择文本图层

Implementation

bool selectLayer(String id) {
  if (_layers.containsKey(id)) {
    _selectedLayerId = id;
    return true;
  }
  return false;
}