The plugin can be used through a Contentsquare class instance:

import 'package:contentsquare/contentsquare.dart';
Contentsquare contentSquare = Contentsquare();

Since all the functions are using a PlatformChannel to send request to the native platform, all functions are Future and should be awaited and caught.

Contentsquare contentsquare = Contentsquare();
try {
final _userId = await contentsquare.getUserId();
setState(() {
userId = _userId;
} on PlatformException catch (e) {
// Handle error message