updateFloatyHeadContent method
Future<bool?>
updateFloatyHeadContent({
- required FloatyHeadHeader header,
- FloatyHeadBody? body,
- FloatyHeadMargin? margin,
- int? width,
- int? height,
This functions updates all the UI that is builded in the custom layout that the chathead uses.
Implementation
Future<bool?> updateFloatyHeadContent({
required FloatyHeadHeader header,
FloatyHeadBody? body,
FloatyHeadFooter? footer,
FloatyHeadMargin? margin,
int? width,
int? height,
}) async {
final Map<String, dynamic> params = <String, dynamic>{
'header': header.getMap(),
'body': body?.getMap(),
'footer': footer?.getMap(),
'margin': margin?.getMap(),
'gravity': 1.0,
'width': width ?? -1,
'height': height ?? -2
};
return await _platform.invokeMethod('setFloatyHeadContent', params);
}