isMockData method

bool isMockData(
  1. DataType type
)

Check if mock data is enabled for the given type

Parameters

  • IN type Type of the data.

Returns

  • True if the data is mocked, false otherwise.f

Throws

  • An exception if it fails

Implementation

bool isMockData(final DataType type) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'DataSourceContainer',
    'isMockData',
    args: type.id,
  );

  return resultString['result'];
}