UserCard.black constructor

UserCard.black({
  1. required String userName,
  2. required String companyTitle,
  3. required String? imageUrl,
})

Implementation

factory UserCard.black({
  required String userName,
  required String companyTitle,
  required String? imageUrl,
}) =>
    UserCard(
      bgColor: Colors.black,
      imageUrl: imageUrl,
      userName: Text(
        userName,
        style: const TextStyle(
          color: Colors.white,
          fontWeight: FontWeight.bold,
          fontSize: 18,
        ),
      ),
      companyTitle: Text(
        companyTitle,
        style: const TextStyle(
          color: Colors.white,
          fontWeight: FontWeight.w200,
          fontSize: 14,
        ),
      ),
    );