getWidgetType method

FWWidgetType? getWidgetType(
  1. String feedId
)

Get the widget type based on feedId, such as FWWidgetType.videoFeed, FWWidgetType.storyBlock. If the feedId isn't attached to a widget(e.g. open the full-screen player using openVideoPlayer), the API will return null.

Implementation

FWWidgetType? getWidgetType(String feedId) {
  return FWGlobalState.getInstance().widgetTypeByFeedIdMap[feedId];
}