createImageMessage method Null safety

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage(
  1. {required String imagePath,
  2. Uint8List? fileContent,
  3. String? fileName}
)

Create image messages (image files up to 28 MB)

  • imagePath image path (only the sender can get it)
  • fileContent byte array (onlyweb siderequired and required)
  • fileName image name (onlyweb sideused and required)

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage(
 {required String imagePath,
 Uint8List? fileContent, // web required
 String? fileName //web required 
 }) async {
 return ImFlutterPlatform.instance.createImageMessage(
 imagePath: imagePath, fileContent: fileContent, fileName: fileName);
}