receiveFromFrontend method

  1. @override
void receiveFromFrontend(
  1. int? id,
  2. String method,
  3. Map<String, dynamic>? params
)

Implementation

@override
void receiveFromFrontend(int? id, String method, Map<String, dynamic>? params) {
  switch (method) {
    case 'getMatchedStylesForNode':
      handleGetMatchedStylesForNode(id, params!);
      break;
    case 'getComputedStyleForNode':
      handleGetComputedStyleForNode(id, params!);
      break;
    case 'getInlineStylesForNode':
      handleGetInlineStylesForNode(id, params!);
      break;
    case 'setStyleTexts':
      handleSetStyleTexts(id, params!);
      break;
  }
}