VideoConfig.fromMap constructor
从Map创建配置
Implementation
factory VideoConfig.fromMap(Map<String, dynamic> map) {
return VideoConfig(
showBackBtn: map['showBackBtn'] as bool?,
isShowNeedTopMargin: map['isShowNeedTopMargin'] as bool?,
topMargin: map['topMargin'] as int?,
isShowActionBar: map['isShowActionBar'] as bool?,
fontSize: map['fontSize'] as int?,
isBold: map['isBold'] as bool?,
actionBarBackgroundColor: map['actionBarBackgroundColor'] as String?,
supportOrientationChange: map['supportOrientationChange'] as bool?,
allowPanBack: map['allowPanBack'] as bool?,
isShowNavigationBar: map['isShowNavigationBar'] as bool?,
navigationBarBackgroundColor:
map['navigationBarBackgroundColor'] as String?,
navigationBarTitleColor: map['navigationBarTitleColor'] as String?,
navigationBarButtonColor: map['navigationBarButtonColor'] as String?,
statusBarStyle: map['statusBarStyle'] as String?,
adOffset: map['adOffset'] as int?,
bottomOffset: map['bottomOffset'] as int?,
hideClose: map['hideClose'] as bool?,
progressBarStyle: map['progressBarStyle'] as int?,
customCategory: map['customCategory'] as String?,
scene: map['scene'] as String?,
titleTopMargin: map['titleTopMargin'] as int?,
titleLeftMargin: map['titleLeftMargin'] as int?,
titleRightMargin: map['titleRightMargin'] as int?,
drawChannelType: map['drawChannelType'] as int?,
hideFollow: map['hideFollow'] as bool?,
hideChannelName: map['hideChannelName'] as bool?,
enableRefresh: map['enableRefresh'] as bool?,
watchTogetherRole: map['watchTogetherRole'] as String?,
hostGroupId: map['hostGroupId'] as int?,
showCloseButton: map['showCloseButton'] as bool?,
hiddenGuideGeste: map['hiddenGuideGeste'] as bool?,
outBottomOffset: map['outBottomOffset'] as double?,
featureValuesArr: map['featureValuesArr'] != null
? List<String>.from(map['featureValuesArr'])
: null,
recommandTabName: map['recommandTabName'] as String?,
drawVCTabOptions: map['drawVCTabOptions'] as int?,
shouldDisableFollowingFunc: map['shouldDisableFollowingFunc'] as bool?,
shouldHideTabBarView: map['shouldHideTabBarView'] as bool?,
customRefresh: map['customRefresh'] as bool?,
navBarInset: map['navBarInset'] != null
? Map<String, double>.from(map['navBarInset'])
: null,
hiddenPlayletTitleView: map['hiddenPlayletTitleView'] as bool?,
hiddenPlayletEnterView: map['hiddenPlayletEnterView'] as bool?,
);
}